单击图像中出现的非语言按钮,我想在代码下面的空间中显示4行4列的菜单,我该怎么办?

问题描述 投票:0回答:1

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列的框架,如计算器。

user-interface flutter dart flutter-layout
1个回答
0
投票

您可以尝试这样的事情。

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小部件中以将剩余的全部空间占用。

© www.soinside.com 2019 - 2024. All rights reserved.