Flattern Mediaquery
Container(
width: MediaQuery.of(context).size.width,
color: Colors.blue,
child: Text('I cover the whole width of the screen!')
)
Joyful Code
Container(
width: MediaQuery.of(context).size.width,
color: Colors.blue,
child: Text('I cover the whole width of the screen!')
)
Container(
height:MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
color: Colors.blue,
child: Text('I cover the whole width of the screen!')
)