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

Using Storage Permission in Flutter

Flutter is an awesome toolkit. It allows us for fast UI iteration. But what if we are not able to access the storage of the device we’re running on? In this guide, we’ll go through how we can get the storage permission in a Flutter Application. Prerequisites Platform setup For this guide, I assume you’re using an Android Device. Normally, In Android, we have to add these lines to our AndroidManifest....

March 21, 2021 · 3 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

Different Types of Snapshots in Flutter

There are 4 major types of Snapshots in Flutter when working with Firebase. These are, AsyncSnapshot DocumentSnapshot QuerySnapshot DataSnapshot If you are a keen observer, you must’ve noticed some of them in my ListView from Firestore Tutorial. AsyncSnapshot This is kind of Superset of all the Asynchronous data sources in Flutter. These AsynSnapshots cover the states such as ConnectionState, whether there is an Error, or the Data source is Empty etc....

March 19, 2021 · 2 min · Muhammed Mukhthar CM

Flutter ListView from Firebase Firestore

Introduction Firebase is a Backend-as-a-Service now owned by Google. There are many servives offered under Firebase. This include but not limited to Cloud Firestore, Realtime Database, Firebase Auth etc. In these, Cloud Firestore is the newest database solution offered by Firebase. It is widely used in Mobile Application and Web-apps nowadays. So let’s have a look on how to create a ListView out of Firestore Data. Prerequisites Before we continue, we should have completed Firebase Setup for our Flutter Application in Both android and iOS by following respective guides for both Android and iOS and Initialized Firebase....

March 18, 2021 · 2 min · Muhammed Mukhthar CM