You may see this error The above error happens when you try to use Get.dialogue() from Getx package. Specially when you try. to use onTap() and Get.dialogue() together. Reason You did not wrap your app using GetMaterialApp. See the code below Learn how to use Get.snackbar()
AAPT: error: resource xml/network_security_config not found flutter Android
This means it’s missing a network_security_config. So to over this problem we need to create a new folder inside res folder. Name the new folder xml. Inside this new folder create a file network_security_config.xml and inside this xml file put the code below
Flutter setPathUrlStrategy | Remove hash(#) from url web app
We can use plugin called url_strategy to remove hash(#) from flutter web app url. Let’s go ahead and install the plugin. To remove it hash(#) from the url use it plugin function setPathUrlStrategy() from your main() function of your app.
Flutter Multiple Floating Action Buttons (FAB)
See how to create multiple floating action buttons in flutter To do it, just do like below That means inside Scaffold, you need to put floatingActionButton and return a Row or Column. Row for horizontal layout and Column is for vertical layout.In the above code I have used Row for floatingActionButton. That’s how you put…
Flutter get network data and update list
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…
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…