mirror of
https://github.com/gskinnerTeam/flutter-wonderous-app.git
synced 2025-05-21 23:06:37 +08:00
Restore google maps functionality
This commit is contained in:
@ -16,7 +16,9 @@ import 'package:wonders/ui/common/app_shortcuts.dart';
|
||||
void main() async {
|
||||
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
|
||||
// Keep native splash screen up until app is finished bootstrapping
|
||||
// FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
|
||||
if (!kIsWeb) {
|
||||
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
|
||||
}
|
||||
GoRouter.optionURLReflectsImperativeAPIs = true;
|
||||
|
||||
// Start app
|
||||
@ -26,7 +28,9 @@ void main() async {
|
||||
await appLogic.bootstrap();
|
||||
|
||||
// Remove splash screen when bootstrap is complete
|
||||
// FlutterNativeSplash.remove();
|
||||
if (!kIsWeb) {
|
||||
FlutterNativeSplash.remove();
|
||||
}
|
||||
}
|
||||
|
||||
/// Creates an app using the [MaterialApp.router] constructor and the global `appRouter`, an instance of [GoRouter].
|
||||
|
Reference in New Issue
Block a user