If you work with firebase messaging and wanna get background message, you may get this error. I got this error as I was working in my video chatting app. At first glance it may look like a Getx error, but it’s not. The entry point of this error is FirebaseMessaging.oBackgroundMessage is the function that takes…
Flutter ImagePicker() and File Upload to Firebase
Here I have note down some important information, that you might find useful when you work with ImagePicker() plugin and Firebase Storage for file uploading. What does imagePicker() return? It returns a XFile object How to get the image path from XFile object? You can get by xFileObjet.path Why do you need File() constructor? We…
Flutter Push Notification iOS AppDelegate.swift
we need to put a different kind of code in AppDelegate.swit for iOS push notification. Flutter default code is not enough this. We did two things here, first we added support for older device. and we also added support for background notification badge
Flutter send notification from device
Learn how to send notification from flutter local device. Here we will cover the method, the post method to send notification. Of course it means before that, you must enable other service and write the correct code.
Flutter Getx Difference Between Get.put(), Get.lazyPut() and Get.putAsync()
If you ever worked with Getx, you will see Get.put(), Get.lazyPut() and Get.putAsync(). Let’s see the difference between them. Get.put() Get.put() is used for inserting controller to memory and it’s get inserted immediately when your app boots. Because Getx will initialize the controller before you use them. It’s not memory efficient. And see the output…
Flutter Firebase Project Set up Issues
If you have downloaded some complete firebase project, and as you try to install them, you will find firebase set up does not work. Or throws error as it tries to connect with Firebase. In that case, I will suggest you do the work dirty way.
Flutter Facebook Login & Crash Issues
Login in I have a tutorial about facebook login, it works fine in the simulator if you log in as a developer account. Here developer account means you need to create an app account in developers.facebook.com and then you need to add yourself as a developer or main admin of the app, then if you…
Flutter Expandable Drawer Menu Using ExpansionTile
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…
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…