Skip to content
pubscout

google_maps_flutter_android

2.21.0, released 7 weeks ago by flutter.dev

Android implementation of the google_maps_flutter plugin.

WASM-ready
$ flutter pub add google_maps_flutter_android
Source repository

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.

Works with

Packages commonly used together with google_maps_flutter_android: ones it builds on, ones built on it, and its own family.