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…
Category: Uncategorized
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…
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…
Flutter setState and callback function
Flutter callback function could be scary idea for beginners. Here I explained everything in detail what you need create a callback function. Using callback function we can pass data between classes. As we pass data, we can trigger new rebuild of UI using new data. Callback functions get trigged when certain events happen. Here we…
Flutter Animation API
Flutter Animation API deserves more explanation.
Flutter Scaffold
We removed everything from the default flutter class, and created a custom one. But we kept the default file material.dart. Scaffold class could be understood like as a skeleton for building simple apps quickly. It comes with some default objects and classes which you can use them easily. We used the Scaffold class, since it…
flutter get stucks in Running “flutter pub get”
When I was trying to create flutter project on my mac termial, It got stuck after a few moment. It showed the below error Then i check my environment by running the command “flutter-doctor” and everything looked ok After doing a bit of research I found that, the problem creating by not get pub files…