是否有适当的方式/颤动火库指南来防止颤动应用程序在从FCM火库通知的onLaunch()加载时从main.dart重新启动。我可以看到,onLaunch被触发了,但很快main.dart就会覆盖它。print('onLaunch: $message');
_serialiseAndNavigate(message); //THIS WORKS , BUT SUDDENLY main.dart
我认为这是由于这些小部件最初是无状态的,所以我尝试将它们转换为有状态的,以便在加载页面时重新加载数据。E/flutter (12296): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter ('String' is not a subtype of type 'VoidCallback
我最近重装了Flutter,Android SDK和VSCode。我成功地从命令行运行了Flutter Doctor。我成功地运行了Flutter run,基本的应用程序在MyEm仿真器上运行。The type of 'MyHomePage.createState' ('() → _MyHomePageState') isn't a subtype of 'StatefulWid