Skip to content

sinau-flutter/row_column

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

row_column_app

A new Flutter project Row and Column Widget

Getting Started

 body: Column(
         mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text('Ini Text 1'),
            Text('Ini Text 2'),
            Text('Ini Text 3'),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text('Ini Text 4'),
                Text('Ini Text 5'),
                Text('Ini Text 6')
              ],
            )
          ],
        ),

Container only have one child but Row and Column have many children, which is marked by an Array sign : <Widgets>[]

Row and Column also have many properties like :

  1. crossAxisAlignment
  2. mainAxisAlignment
  3. key
  4. mainAxisSize
  5. textBaseline
  6. textDirection
  7. verticalDirection

About

Understanding Row and Column Widgets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published