show static method
显示FnPanel
context Returns void
Implementation
static void show(BuildContext context) {
if (_currentDialogContext == null) {
Future.delayed(const Duration(milliseconds: 10), () async{
_currentDialogContext = context;
if (_isAddedGlobalButton) {
_removeGlobalButton();
}
await showDialog(
context: context,
useSafeArea: false,
builder: (BuildContext context) {
return const FnBaseBottomPanel(
child: FnBottomContentPanel()
);
},
);
if (_isAddedGlobalButton) {
Future.delayed(const Duration(milliseconds: 100), () {
addGlobalButton(context);
});
}
_currentDialogContext = null;
});
}
}