Responsive adaptive layout
MediaQuery.of(context)
height: (MediaQuery.of(context).size.height -
appBar.preferredSize.height -
MediaQuery.of(context).padding.top) *
0.4,final curScaleFactor = MediaQuery.of(context).textScaleFactor;Text('Always the same size!', style: TextStyle(fontSize: 20));Text('This changes!', style: TextStyle(fontSize: 20 * curScaleFactor));Last updated