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

后端 未结 9 1300
灰色年华
灰色年华 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:45

    My approach is to use SingleChildScrollView with the ClampingScrollPhysics physics.

    SingleChildScrollView(
      physics: ClampingScrollPhysics(),
      child: Container(),
    )
    

提交回复
热议问题