Flutter layouts
In Flutter, the layout is primarily defined by widgets specifically designed to provide layout, combined with control widgets and their style properties.
For example, the Column and Row widgets take an array of children and align them vertically and horizontally respectively. A Container widget takes a combination of layout and styling properties, and a Center widget centers its child widgets.
Center( child: Column( children:[ Container( color: Colors.red, width: 100.0, height: 100.0, ), Container( color: Colors.blue, width: 100.0, height: 100.0, ), Container( color: Colors.green, width: 100.0, height: 100.0, ), ], ), )
Flutter provides a variety of layout widgets in its core widget library. For example, Padding, Align, and Stack.
For a complete list, see Layout Widgets.
Search within Codexpedia
Custom Search
Search the entire web
Custom Search
Related Posts