使用的flutter_boost4.1, 想内部使用GetX的路由管理,但是发现不能使用,提示`══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
The following message was thrown while handling a gesture:
You are trying to use contextless navigation without
a GetMaterialApp or Get.key.
If you are testing your app, you can use:
[Get.testMode = true], or if you are running your app on
a physical device or emulator, you must exchange your [MaterialApp]
for a [GetMaterialApp].
使用的flutter_boost4.1, 想内部使用GetX的路由管理,但是发现不能使用,提示`══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════ The following message was thrown while handling a gesture: You are trying to use contextless navigation without a GetMaterialApp or Get.key. If you are testing your app, you can use: [Get.testMode = true], or if you are running your app on a physical device or emulator, you must exchange your [MaterialApp] for a [GetMaterialApp].
` 代码如下:
请教有知道怎么回事的吗?