Menu

waiting answer September 16, 2020

Confused about the layout

I'm a little confused about this layout. How can I manipulate the main two rows to get a flex property of 3 and 1.

Answers
September 16, 2020

Use expanded and u can specify flex value 

	Row(
		children:[
		Expanded(
		flex:1,
		child:Container(
		child:Row()
		)
		),
		Expanded(
		flex:3,
		child:Container(
		child:Row()
		)
		)
	]).
0 0
September 16, 2020

Use flexible on rows like this

    container(
	child: Column(
	children{
	flexible(flex:3, child: Row()),
	flexible(flex:1, child: Row()),
	}
	))
0 0

Please Login to Post the answer

Leave an Answer