google_maps_flutter_android
2.21.0, released 7 weeks ago by flutter.dev
Android implementation of the google_maps_flutter plugin.
What it does
Provides the Android-specific platform implementation for the google_maps_flutter plugin. It handles rendering Google Maps on Android using either Texture Layer Hybrid Composition or Hybrid Composition.
AI-written summary of version 2.21.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter app for Android using google_maps_flutter and need to configure Android-specific map settings.
- You need to explicitly force Hybrid Composition or texture layer settings for Android map rendering.
Skip it when
- You are writing a cross-platform app and only need to depend on the high-level google_maps_flutter package directly instead of the Android implementation.
Strengths
- Federated plugin architecture cleanly separates Android-specific implementation details.
- Supports performance tuning via display mode configurations and SDK warmup APIs.
Weaknesses
- Platform-specific to Android; requires corresponding iOS implementations for cross-platform apps.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Specify your Google Maps API key in the application manifest android/app/src/main/AndroidManifest.xml.
import 'package:google_maps_flutter_android/google_maps_flutter_android.dart';
import 'package:google_maps_flutter_platform_interface/google_maps_flutter_platform_interface.dart';
void main() {
final GoogleMapsFlutterPlatform mapsImplementation = GoogleMapsFlutterPlatform.instance;
if (mapsImplementation is GoogleMapsFlutterAndroid) {
mapsImplementation.useAndroidViewSurface = true;
}
}Alternatives
Packages that do the same job and could replace google_maps_flutter_android.
- animated_marker
Animate Google Maps markers smoothly between location updates in Flutter.
79Compare - map_location_picker
Google Maps location picker for Flutter with Places API search and typed addresses.
76Compare - google_maps
Use the Google Maps JavaScript API directly from Dart scripts.
75Compare - google_maps_apis
Dart client library for Google Maps Web Services APIs.
75Compare
Works with
Packages commonly used together with google_maps_flutter_android: ones it builds on, ones built on it, and its own family.
- stream_transformgoogle_maps_flutter_android depends on itExtension methods adding common stream transform operators
- flutter_plugin_android_lifecyclegoogle_maps_flutter_android depends on itFlutter plugin for accessing Android Lifecycle within other plugins.
- google_fontsSame familyFlutter package to load Google Fonts at runtime or bundle them as assets
- google_sign_in_iosSame familyiOS and macOS implementation of Google Sign-In for Flutter
- google_sign_in_androidSame familyAndroid implementation of the google_sign_in plugin
- google_sign_inSame familyOfficial Flutter plugin for authenticating users and requesting OAuth scopes via Google Sign-In.
- local_auth_androidSame familyAndroid implementation of the local_auth plugin for biometric authentication.
- google_maps_flutter_iosSame familyiOS implementation of the google_maps_flutter plugin.