[英]how to show full showModalBottomSheet when open keyboard
I used isScrollControlled: true
and SingleChildScrollView
widget..when open keyboard how to open full sheet?我使用
isScrollControlled: true
和SingleChildScrollView
小部件..打开键盘时如何打开整张表?
onPressed: () {
showModalBottomSheet(
context: context,
builder: (BuildContext context) {
return BottomSheet(
camera: camera,
subPost: widget.subPost
);
},isScrollControlled: true);
},
BottomSheet class底片 class
class _BottomSheetState extends State<BottomSheet> {
@override
Widget build(BuildContext context) {
return
SingleChildScrollView(
child:
Container(
child: Padding(
padding:
EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: Column(
My output我的 output
your screen is not scrolling, because your bottom sheet is not scrollable.
您的屏幕没有滚动,因为您的底部工作表不可滚动。
Try below code:试试下面的代码:
showModalBottomSheet(
context: context,
isScrollControlled: true,
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.