📜  加载时的 showModalBottomSheet - 任何代码示例

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

代码示例1
@override
  void initState() {
    // TODO: implement initState

    Future.delayed(Duration(seconds: 0)).then((_) {
      showModalBottomSheet(
          context: context,
          builder: (builder) {
            return Container();
          });
    });
    super.initState();
  }