美文网首页
Another exception was thrown: Sc

Another exception was thrown: Sc

作者: Songzh | 来源:发表于2019-04-24 16:53 被阅读0次

    解决方案

    GlobalKey<ScaffoldState> key = GlobalKey();
    
    Scaffold(
          key: key,
    ),
    
    key.currentState.showBottomSheet((context) {
          return Container(
              child:Text("test"),
    );
        });
    

    相关文章

      网友评论

          本文标题:Another exception was thrown: Sc

          本文链接:https://www.haomeiwen.com/subject/ctaggqtx.html