Hello and welcome to 2A Channel
Today we will talk about flexible widget
Laying out
widgets in rows and columns
is straightforward, if those
widgets have a fixed size.
But what if you
want a size that's relative to their parent?
And what if you want to adjust those widgets when their parents' size changes?
This is trivial to do using the Flexible widget.
add to center widget column widget
and add to column widget three container widget
height 100 and color light blue
copy container widget and paste it two times
chnage color of container
 
add the flexible widget to container widget
remove height paramter
add flex parameter with a value of 2
as you can see on emulator the container will take all free space on the screen
add the flexible widget to the second container
add flex parameter with value of 4
add the flexible widget to the third container
add flex parameter
as you can see on emulator the free space on-screen are split depending on flex value
Thank You For Watching
