Image shows a screen that returns a SingleChildScrollView.
结构看起来像SingleChildScrollView
-Column
-new Card
-new Card
-new Card
-Row
-new Card
-new RaisedButton(Noise)
-new RaisedButton(SkipJob)
-new RaisedButton(Non-verbal) -----------> *(this-button)
*(此按钮)单击此按钮时,我希望显示一个具有一定高度的小部件,该高度适合于4行4列的框架,如计算器。
您可以尝试这样的事情。
Column(
children:[
Row(children:[Text('1'),Text('2'),Text('3'),Text('4'),],),
Row(children:[Text('5'),Text('6'),Text('7'),Text('8'),],),
Row(children:[Text('9'),Text('10'),Text('11'),Text('12'),],),
Row(children:[Text('13'),Text('14'),Text('15'),Text('16'),],),
],),
可以将Column
包装在Expanded
小部件中以将剩余的全部空间占用。