
在 Scaffold中加上resizeToAvoidBottomInset: false,
return Scaffold(
///禁止布局随着键盘上移动
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: Text(“键盘处理”),
),
body: Container(
margin: EdgeInsets.only(bottom: 200),
alignment: Alignment.bottomCenter,
child: TextField(
controller: widget.c,
),
),
);
///取消下划线
decoration: InputDecoration(
border: InputBorder.none,
),
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)