From b5ba7ee02f676711d6c068978aaca15ccf3de067 Mon Sep 17 00:00:00 2001 From: ivirtex Date: Sun, 24 Dec 2023 18:53:16 +0100 Subject: [PATCH] Remove map renderer initialization & stringify --- lib/bootstrap.dart | 15 --------------- lib/launches/bloc/launches_state.dart | 3 +++ 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/lib/bootstrap.dart b/lib/bootstrap.dart index 517d169..5bc2d52 100644 --- a/lib/bootstrap.dart +++ b/lib/bootstrap.dart @@ -6,14 +6,11 @@ import 'dart:developer'; // Flutter imports: import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; // Package imports: import 'package:firebase_core/firebase_core.dart'; import 'package:firebase_crashlytics/firebase_crashlytics.dart'; -import 'package:google_maps_flutter_android/google_maps_flutter_android.dart'; -import 'package:google_maps_flutter_platform_interface/google_maps_flutter_platform_interface.dart'; import 'package:hydrated_bloc/hydrated_bloc.dart'; import 'package:path_provider/path_provider.dart'; @@ -54,17 +51,5 @@ Future bootstrap(FutureOr Function() builder) async { storageDirectory: await getTemporaryDirectory(), ); - final mapsImplementation = GoogleMapsFlutterPlatform.instance; - if (mapsImplementation is GoogleMapsFlutterAndroid) { - mapsImplementation.useAndroidViewSurface = false; - - try { - await mapsImplementation - .initializeWithRenderer(AndroidMapRenderer.latest); - } on PlatformException catch (e) { - log(e.toString()); - } - } - runApp(await builder()); } diff --git a/lib/launches/bloc/launches_state.dart b/lib/launches/bloc/launches_state.dart index ec032e4..b512eb4 100644 --- a/lib/launches/bloc/launches_state.dart +++ b/lib/launches/bloc/launches_state.dart @@ -72,6 +72,9 @@ class LaunchesState extends Equatable { ); } + @override + bool? get stringify => false; + @override List get props => [ upcomingLaunchesStatus,