-
flutter Namespace not specified. Specify a namespace in the module's build file
这里是解决方案 -
Do not use BuildContexts across async gaps
解决方案如下
void onButtonTapped(BuildContext context) async {
await Future.delayed(const Duration(seconds: 1));
if (!context.mounted) return;
Navigator.of(context).pop();
}
网友评论