Now, this error happens due to blockage of communication between your app and firebase server. It means your app could not communicate with Firebase server. There could be many reasons why you will get this error Internet and VPN Connection To solve this error, make sure your android emulator has internet connection. If no internet…
Month: May 2022
Flutter Getx Radio Buttons | Toggle Selection | State Management
Learn how to use manage state with getx for flutter radio buttons. Radio buttons and getx state management. You will also learn how to select or toggle the buttons. Entry point main.dart Controller Below is the controller that maintains the state of the radio buttons import ‘package:get/get.dart’;class ButtonController extends GetxController{ String _orderType = ‘home_delivery’; String…
Flutter 3.0 Game Development Source Code
Above I have uploaded the code in an organized manner. You can just download from the link up. Download the code and run The code includes the below features App life cycle observer A logger for the app screens meaning, for the dart classes Crashlytics for collecting crash information Gameservice for uploading the app to…
How to make a search bar in Flutter
We will see how to make a responsive search bar in Flutter using simple widgets. We will put everything in a Row widget. We want the search bar to take the complete width horizontally, so we will put an Expanded widget inside the Row widget. We will make sure the search bar has distinctive color…
Flutter Error: Member not found: ‘UnicodeChar’ [Solved]
After upgrading to flutter 3.0 you will get below error if you run, Flutter Error: Member not found: ‘UnicodeChar’ To solve this error, do the below things run flutter clean delete pubspec.lock file flutter pub get.
Flutter Switch Widget | Make A Button
We will see how to use Switch widget that we can use for profile. Switch widget takes a few parameters
Error: Method ‘addPostFrameCallback’ cannot be called on ‘SchedulerBinding?’ because it is potentially null.
It could cause this problem due to flutter null-safety. Now, your vscode or android studio should give you the errors regarding which files and which lines. Most of the places, you will the keyword instance. 1. You need to put ! operator right next to the instance in extention_navigation.dart This is for snackbar. This comes…
Flutter Place Order Model for E-commerce App
The below code is for your place order model. The code is use in the app for food delivery
Flutter Order Model for Payment
Below we created an order model for our e-commerce app.
Flutter SliverGridDelegateWithFixedCrossAxisCount
We will see how to use SliverGridDelegateWithFixedCrossAxisCount in flutter. You use it for show items in grid.Mostly you will use it inside Gridview.Builder crossAxisCount: number of cross axis child elements. After this attribute value is determined, the length of the child element on the horizontal axis is determined, that is, the quotient of the horizontal…