Restore google maps functionality

This commit is contained in:
Shawn
2024-09-25 16:08:59 -06:00
parent 05d2c90ba5
commit f60556a94e
11 changed files with 242 additions and 159 deletions

View File

@ -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].