mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
Init analysis only release mode
This commit is contained in:
@@ -127,6 +127,8 @@ class _MyHomePageState extends State<MyHomePage>
|
|||||||
await GetIt.I.allReady();
|
await GetIt.I.allReady();
|
||||||
await locator<ServerProvider>().loadLocalData();
|
await locator<ServerProvider>().loadLocalData();
|
||||||
await doUpdate(context);
|
await doUpdate(context);
|
||||||
await Analysis.init(BuildMode.isDebug);
|
if (BuildMode.isRelease) {
|
||||||
|
await Analysis.init(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user