When the keyboard appears, the Flutter widgets resize. How to prevent this?

后端 未结 9 1297
灰色年华
灰色年华 2020-12-02 05:51

I have a Column of Expanded widgets like this:

 return new Container(
      child: new Column(
        crossAxisAlignment: CrossAxisAlignment.stretch,
               


        
9条回答
  •  悲哀的现实
    2020-12-02 06:41

    Depending on the use case you could also consider using a listview. That would ensure that the contents scroll when there is not enough room. As an example, you can look at the textfield demo in the gallery app

提交回复
热议问题