Prologue to Flutter GetX | Development made simple with GetX Plugin

Sanchit Saran
2 min readMay 16, 2021

Hello there Guys, In this Flutter Tutorial i am going to present you with best advancement module that makes vacillate programming improvement simple and quick i.e Flutter GetX.

This Tutorial Article will be only an Introduction to Flutter GetX Plugin and How to you can introduce it in your vacillate task and fundamental of how to us getX.

Learn more about the package from offical Site in details https://pub.dev/packages/get

GetX is a Flutter package which offers state management, dependency injection management and route management, all co-dependently working with one another . It centralizes most development needs under one package. it’s also interdependent, which suggests you do not use all the features, instead just customise as per the necessity . for instance , if you would like to use it just for state management you do not include dependency or routes management within the process. It also offers easy implementation of theming, validation .

Feature provided in Flutter GetX library

  1. State Management
  2. Route Management
  3. Dependency Management
  4. Validation & much more.

Routing using GetX:

Get.to(SecondScreen());
  • In case you want to navigate back to previous screen, use the code below:
Get.back();

In order to use route management or GetX methods you would like to vary your MaterialApp() to GetMaterialApp(). This step is optional if we are getting to use using GetX just for state management.

To display dialogs on GetX:

Get.defaultDialog(
onConfirm: () {
// action need to be done
},
title: 'GetX alert dialog',
middleText: 'Dialog displayed',
);

THANK YOU

#flutter​ #fluttertutorials #getX

For more interesting videos and pics.

SUBSCRIBE on YOUTUBE

https://youtube.com/channel/UCyRt3BNQhVnYmfwVeMQAOxw

CONNECT on LINKEDIN

https://www.linkedin.com/in/sanchitsaran​

FOLLOW on GITHUB

https://github.com/SanchitSaran

--

--

Sanchit Saran

FLUTTER | ANDROID | WEB | UI/UX | YOUTUBER | ARTIST