每当我刷新Flutter Web项目中的页面时,就会收到以下错误信息。
_debugCurrentBuildTarget == context is not true
at Object.throw_ [as throw] (errors.dart:216)
at Object.assertFailed (errors.dart:26)
at framework.dart:2611
at framework.BuildOwner.new.buildScope (framework.dart:2614)
at RenderObjectToWidgetAdapter.new.attachToRenderTree (binding.dart:1044)
at binding$5.WidgetsFlutterBinding.new.attachRootWidget (binding.dart:924)
at binding.dart:906
at internalCallback (isolate_helper.dart:50)
MediaQuery.of(context)
? - AdelinaMediaQuery.of(context)
,并且这个问题发生在所有页面上。 - AbdulGafar Olamide Ajao