Top "Flutter-container" questions

For questions relating to Flutter's Container class.

Flutter BoxDecoration’s background color overrides the Container's background color, why?

I have a Flutter Container widget and I defined a color for it (pink), but for some reason, the color …

flutter dart colors background-color flutter-container
Flutter: Scrolling to a widget in ListView

How can I scroll to a special widget in a ListView? For instance I want to scroll automatically to some …

flutter listview dart flutter-layout flutter-container
Limit max width of Container in Flutter

Widget build(context) { return Row( mainAxisSize: MainAxisSize.min, children: [ Container( width: 300, padding: EdgeInsets.all(10), decoration: BoxDecoration( color: color ?? Colors.blue, …

user-interface flutter flutter-layout word-wrap flutter-container
Flutter Container: cannot provide both a color and a decoration

I want to draw a border around my container and have the background be colored. Widget bodyWidget() { return Container( color: …

flutter dart background-color flutter-container decoration
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