方案一:
设置resizeToAvoidBottomPadding 为false
return Scaffold(
resizeToAvoidBottomPadding: false, //输入框抵住键盘
appBar: AppBar(
elevation: 0.0,
title: Text("登陆"),
),
);
方案二:
在界面的body上用SingleChildScrollView包裹一下
body: SingleChildScrollView(
child:...
网友评论