GetX – simplified reactions
GetX is one of the simplest state management techniques that uses the least possible boilerplate code to manage your states in Flutter. It abstracts out all the repetitive code for you and lets you write your main code with the smallest number of lines. GetX is also known for abstracting out navigation logic and providing a clean interface for handling navigations in your application. To deeply understand the theory and motivation behind GetX, read the documentation on their official package ReadMe page:
https://pub.dev/packages/get
Let's see how our counter example is built using GetX.
Adding a GetX dependency in a sample application
Create a new application using any name you want just like we did in the previous chapters:
flutter create any_name_you_wish
You will get the same counter example application with the default setState
management technique implemented to update the counter value.
Let's see how to embed GetX...