直播平台源码,关于弹出框中输入框被遮挡问题解决
直播平台源码,关于弹出框中输入框被遮挡问题解决实现的相关代码
showModalBottomSheet(
context: context,
isScrollControlled: true,
isDismissible: false, //点击其他位置是否能关闭弹框
builder: (BuildContext context) {
return new Container(
padding: EdgeInsets.only(
top: 10.0,
left: 10.0,
right: 10.0,
bottom: MediaQuery.of(context).viewInsets.bottom),
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.only(top: 15.0,right:10.0,bottom: 20.0,left: 10.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('费用金额(元):'),
Container(
child: TextField(
controller: moneyController,
keyboardType: TextInputType.number,
textAlign: TextAlign.start,
style: TextStyle(fontSize: 13),
decoration: InputDecoration(
hintText: '请输入金额',
),
),
),
],
),
)
),
),
);
以上就是直播平台源码,关于弹出框中输入框被遮挡问题解决实现的相关代码, 更多内容欢迎关注之后的文章