Top "Flutter-widget" questions

Flutter: How to correctly use an Inherited Widget?

What is the correct way to use an InheritedWidget? So far I understood that it gives you the chance to …

flutter dart flutter-widget
How to customize the switch button in a flutter

In my app, I want the switch is used to toggle a setting between on/off which is true/false …

flutter dart customization flutter-widget
A non-null String must be provided to a Text widget

I'm trying to add the option for the quantity to be adjusted but I get an error saying "A non-null …

string flutter dart flutter-layout flutter-widget
How to deal with unwanted widget build?

For various reasons, sometimes the build method of my widgets is called again. I know that it happens because a …

flutter dart flutter-layout flutter-widget unbound
How to create colour box with fixed width and height in flutter?

I am trying to create a color box with fixed width and height in a flutter. How to achieve this?

flutter dart flutter-layout flutter-widget
How can I display buttons side-by-side in Flutter?

I would like to display both of my buttons next to each other horizontally. So far I can only display …

flutter dart layout flutter-layout flutter-widget
Make Function parameter optional in custom widget flutter

I try to create some custom widgets with some parameters in the constructor. This widget has some optional and required …

flutter dart flutter-widget
List of horizontal list in Flutter

I have followed this tutorial and fully implemented a horizontally scrolling list. Now, what I would like to do is …

flutter listview dart horizontal-scrolling flutter-widget
Adding a Gradient Background to Appbar on Flutter

I want to make the background of the AppBar a gradient, How can i do it.

flutter dart flutter-layout appbar flutter-widget
Check image is loaded in Image.network widget in flutter

I am new to Flutter. I try to load network images using image.network widget. it's working fine but sometimes …

image flutter dart image-loading flutter-widget