解决方案
GlobalKey<ScaffoldState> key = GlobalKey();
Scaffold(
key: key,
),
key.currentState.showBottomSheet((context) {
return Container(
child:Text("test"),
);
});
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
网友评论