In this tutorial, we will learn how to expand drawer menu using ExpansionTile in flutter. in the earlier tutorial we used ExpansionTile to show content in the body. Now we we will use ExpansionTile in the drawer menu. ExpansionTile children property can take as many children as possible. In the children list we have used…
Month: December 2022
Flutter load and display csv file content
Flutter load and display csv file content. Previously we have seen how to load JSON file in flutter and display it’s content. We will be using a csv package for it. Let’ go ahead and download the csv package using the below command. And then run After that in your pubspec.yaml file make sure, you…
Flutter Firestore withConverter
Flutter Firebase Firestore withConverter() method provides Map<String, dynamic> data to convert to object and from object Map<String, dynamic>. So with this we convert Map to object and object to Map. Because Firebase Firestore default way storing and retrieving data is Map<String, dynamic>. This is not very efficient and error prone. Look at the example below…
Flutter Getx GetxController or GetxService
You should use GetxController when you want to use data on per open page. If you open the page GetxController will initialize and you will get update data. But if you use GetxService, it will only get initialized once when the app launch first time. And the data would be saved in memory. GetxService may…
Flutter Dropdown Multiselect Checkbox
Flutter Dropdown Multiselect Checkbox
Flutter Getx Get.find() inside Controller
A lot of time, you may use Get.find() inside Getx controller. We need that to reduce bipolerate code. We can do that by creating a static method which refers to the current class. All we have to do it is return Get.find(). We created a class name StorageService and extends GetxService. And inside that we…
Flutter Flip Card 3D Animation
We will do flutter 3d animation of card image using AnimationController, Tween and AnimationStatus. We will do that using stateful class. Inside the class we will override initState() method and declare Here addListener() and addStatusListener() plays very important roles. Without them animation is not dynamic and not updated immediately. Because of this status listener, we…
Flutter Spinning Animation Without Plugin
Let’s learn about flutter spinning animation without plugin. Animation could be scary for beginners. But three simple steps to follow for animation.
Flutter BLoC RepositoryProvider
Flutter BLoC RepositoryProvider is needed when you network call or api request inside from a controller. That means if you have a controller, you should assign it inside RepositoryProvider, then the class would get loaded first. This controller class would hold methods and fields, that’s necessary when you trigger events and load data or pass…