Flutter’s Row
widget is equivalent to android’s LinearLayout
with android:orientation="horizontal"
,
and Column
widget is equivalent to android’s LinearLayout
with android:orientation="vertical"
.
flex
property of Flexible
widget is equivalent weight
property, you can wrap the Text
widgets in a Flexible
widget and specify the flex
property.
Example:
new Row(
children: <Widget>[
new Flexible(child: new Text("Babe"), flex: 1,),
new Flexible(child: new Text("I miss you"), flex: 1,)
],
)