Top "Flutter-widget" questions

Flutter RenderIndexedStack object was given an infinite size during layout

I am battling this DropDownItem box error, everything seems to work, but pops up the yellow out of bounds while …

flutter dart layout flutter-layout flutter-widget
How to conditionally add widgets to a list?

In flutter, widgets such as Row/ListView/Stack don't handle null children. So if we want to conditionally add widgets …

flutter dart conditional-statements flutter-widget flutter-listview
passing generic type by Function(T) in flutter

I'm trying to create a generic consumer widget that facilitates the ViewModel to its child. therefor I have two functions. …

generics flutter dart flutter-widget
Flutter: What is the difference ButtonStyle() and .styleFrom()

I am new in Flutter. Here is my code, For ElevatedButton, ElevatedButton( onPressed: () { // Add your onPressed code here! }, child: Text("…

flutter flutter-widget
Flutter disable touch on the entire screen

Is there any way to prevent my screen from receiving touch events, I don't want to disable touch for every …

flutter dart touch flutter-widget
How to add image/icon for right side of a button?

These days I am developing flutter mobile application for the Android platform. I want to add a button with text …

flutter flutter-layout flutter-widget
Failed assertion: !_debugLocked is not true when using Navigator.popUntil() in Flutter

In my flutter app I use this code to go to my dashboard page, but it fails to do so …

flutter dart navigation flutter-widget
Flutter Container Positioning or alignment inside Row widget

I'm new in flutter. right now learning how to positioning or aligning widgets. I have two containers inside my row …

flutter flutter-widget flutter-container
Failed assertion: line 551 pos 12: 'child.hasSize': is not true

I'm new in Flutter, I'm working on an e-commerce website, I want to add a Grid in my welcome page …

flutter dart flutter-layout flutter-widget
Flutter Showing Snackbar On Top of Bottom Sheet

In my code I call a bottom sheet to display a list of tiles. These tiles contain buttons that display …

flutter dart flutter-layout android-snackbar flutter-widget