📜  mainBottomSheet 消失键盘 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:07.137000             🧑  作者: Mango

代码示例1
showModalBottomSheet(
    context: context,
    isScrollControlled: true,
    builder: (BuildContext context) {
      return SingleChildScrollView(
          child: Container(
        padding: EdgeInsets.only(
            bottom: MediaQuery.of(context).viewInsets.bottom),
        child: PlaceYourChildWidget(),
      ));
    });