Skip to content

Commit

Permalink
Remove map renderer initialization & stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirtex committed Dec 24, 2023
1 parent ab62429 commit b5ba7ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/bootstrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -54,17 +51,5 @@ Future<void> bootstrap(FutureOr<Widget> 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());
}
3 changes: 3 additions & 0 deletions lib/launches/bloc/launches_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ class LaunchesState extends Equatable {
);
}

@override
bool? get stringify => false;

@override
List<Object?> get props => [
upcomingLaunchesStatus,
Expand Down

0 comments on commit b5ba7ee

Please sign in to comment.