Flutter listview not updating after data update after network request using http.get or http.post. Here we will see how to update the data listview once you post data to the server or get data from the server. If you are not able to update the data after http request, then you this is the right…
Month: March 2022
Flutter Neomorphism
Use these four rules for flutter neomorphism design 1. Screen background color 2. Container border color Here Container border color should match the screen background color 3. Shadow color You shadows should be pointing to the opposite. And they should have two different colors. And they Bottom color should be little close to the background…
Flutter showModalBottomSheet | Show a Modal Bottom Sheet
Flutter modal bottom sheet with dismissible widget We wrapped showModalBottomSheet inside Dismissible widget. And we wrapped Dismissible inside a listView.builder Replace TaskWidget with a Text widget. Here is your ButtonWidget
Unable to connect to localhost from flutter application to access..
Using 10.0.2.2 instead of localhost or 127.0.0.1 make sense when you are using emulator.But It’s expected that you can’t connect to the localhost being not in the same network. You can share hotspot from your desktop, connect mobile to it and use your IP in this network (most probable 192.168.137.1) instead of localhost. Or find another variant. So for our application end points(laravel) http://192.168.0.243:8000/api/v1/products/popular In…
Flutter Glassmorphism Design UI | With Code Given
Learn how to do glassmorphism desgin in flutter.
Flutter Beautiful Buttons For Beginners | Row | Column
Watch the video how to make a beautiful button using row and column and flexible. This button is a dynamic button. Take a look at the code Here we started with Column widget to center everything in the screen And then we used row inside the column and then we used another row inside the…
Null check operator used on a null value | Getx get_state
If you forget to inject controller in Getx flutter, then you will get below error So all you need to do is to inject the controller (dependency injection)before you run your MaterialApp() In the above photo you can see that, I am using Get.lazyPut() to inject the DataClass controller.
Replacement for pushReplacement() in Getx
If you want to do pushReplacement() in Getx flutter, then you need to use one of the below
Flutter: unable to get local issuer certificate HandshakeException: Handshake error in client
Solution 1 Calling MyHttpOverrides() may help you. But should it should be only used in development mode. This should be used while in development mode, do NOT do this when you want to release to production, the aim of this answer is to make the development a bit easier for you, for production, you need to fix your…
No Material widget found Flutter
This happens if they entry point of your app is missing Scaffold. Your flutter app must have at least one Scaffold. Without it flutter, doesn’t know where to start the drawing from. Here we are returning Container(). But this is our homepage or the entry point of our app. And it’s missing a scaffold. After…