flutter: windows: Disable Catcher (WAR)
Issue: Throw UnimplementedError('windowsInfo() has not been implemented.') when launching app. Workaround solution: Disable Catcher for the Windows platform. Stack: DeviceInfoPlatform.windowsInfo (device_info_plus_platform_interface.dart:87) DeviceInfoPlugin.windowsInfo (device_info_plus.dart:78) Catcher._loadDeviceInfo (catcher.dart:256) Catcher._configure (catcher.dart:87) new Catcher (catcher.dart:75) main (main.dart:55)
This commit is contained in:
parent
bd98dadb78
commit
5d9241d98e
|
@ -51,7 +51,7 @@ Future<void> main() async {
|
|||
|
||||
_initUI();
|
||||
|
||||
if (EnvironmentConfig.catcher) {
|
||||
if (EnvironmentConfig.catcher && !Platform.isWindows) {
|
||||
final catcher = Catcher(
|
||||
rootWidget: const SanmillApp(),
|
||||
ensureInitialized: true,
|
||||
|
|
Loading…
Reference in New Issue