1、1.1.19版本一下的,可以設置resizeToAvoidBottomInset為false,鍵盤彈起不會resize。
Scaffold( appBar: AppBar(''), resizeToAvoidBottomPadding: false, //輸入框抵住鍵盤 body:, )
2、固定頁面的的高度,將高度寫死。
body: SingleChildScrollView( child: MediaQuery.removePadding( context: context, removeTop: true, removeBottom: true, child: Container( height: MediaQuery.of(context).size.height - 56.0 - MediaQuery.of(context).padding.bottom - MediaQuery.of(context).padding.top, child: Container(), ) ),
