Easy Dialogs using GetX

Intro I you have read my post about snackBars using GetX, You already know how easy is it to work with GetX in Flutter. Dialogs are an essential part of mobile Apps. They help to convey alerts and important messages as well as to do certain actions. Normally in Flutter, shown below is a sample code for showing and Alert Dialog. showDialog( context: context, builder: (context) => AlertDialog( title: Text( "Alert", ), content: Text( "This is sample Content", ), ), ); That’s too many Lines of code for a Simple Dialog like this....

May 3, 2021 · 3 min · Muhammed Mukhthar CM

GetX Navigation Basics

As I told in the post about Showing Snackbars using GetX, GetX is an awesome all-in-one package. Another great feature in GetX is easy navigation without a lot of boilerplate code. The most useful feature of GetX navigation is not the decreased number of Lines of Code, but The ability to use these within our Business Logic. As they don’t need context, we can simply use them inside our Business Logic 😊....

March 22, 2021 · 2 min · Muhammed Mukhthar CM

Flutter Snackbar Without Context using GetX

One thing which makes Flutter very much awesome is it’s packages ecosystem. Out of all of them get is a package that stands out with it’s features. It is a complete package with Navigation, state management, Dependency injection, … , blah blah blah… you name it 😀. In this post, we’re gonna talk about how to show a SnackBar in Flutter with the getx library. Adding Packages First of all, we have to add the get package into our pubspec....

March 20, 2021 · 3 min · Muhammed Mukhthar CM