Skip to content
pubscout

google_navigation_flutter

0.13.0, released 8 days ago by mapsplatform.google.com

Flutter plugin for Google Navigation and map widgets on Android and iOS.

$ flutter pub add google_navigation_flutter
Source repository

What it does

Provides Google Maps navigation and map view widgets for Flutter apps. Handles turn-by-turn navigation sessions, destination routing with route tokens, and map styling.

AI-written summary of version 0.13.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to build turn-by-turn GPS navigation into your app.
  • You want to display Google Maps with integrated navigation functionality.

Skip it when

  • You only need basic static maps without turn-by-turn navigation requirements.
  • You cannot meet the strict native requirements (iOS 17.0+, Android API 24+, and Google Cloud project with billing).

Strengths

  • Official Google Navigation SDK bindings for Flutter.
  • Supports both Android and iOS platforms.
  • Includes features for route tokens, notifications, and custom display options.

Weaknesses

  • Requires a Google Cloud project with billing and specific API restrictions/keys.
  • High minimum setup requirements such as iOS 17.0+ and specific Gradle/AGP versions on Android.
  • Beta software status means breaking changes may occur.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
5

Requires a Google Cloud project, API keys configured for both Android and iOS, Swift Package Manager on iOS, core library desugaring on Android, background mode permissions, and specific SDK/Gradle versions.

class NavigationSample extends StatefulWidget {
  const NavigationSample({super.key});

  @override
  State<NavigationSample> createState() => _NavigationSampleState();
}

class _NavigationSampleState extends State<NavigationSample> {
  bool _navigationSessionInitialized = false;

  @override
  void initState() {
    super.initState();
    _initializeNavigationSession();
  } 

  Future<void> _initializeNavigationSession() async {
    await GoogleMapsNavigator.initializeNavigationSession(taskRemovedBehavior: TaskRemovedBehavior.continueService);
    setState(() {
      _navigationSessionInitialized = true;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: _navigationSessionInitialized
          ? GoogleMapsNavigationView(
              onViewCreated: (controller) {
                controller.setMyLocationEnabled(true);
              },
            )
          : const Center(child: CircularProgressIndicator()),
    );
  }
}

Alternatives

Packages that do the same job and could replace google_navigation_flutter.

Works with

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