how to make a widget flexible in flutter code example
Example: flexible widget flutter
Row(children:[
Flexible(
flex:5
child: Container(color: Colors.red, child: Text('This is a very long text that won’t fit the line.'))),
Flexible(
flex:5
child: Container(color: Colors.green, child: Text(‘Goodbye!’))),
]
)