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.
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.
- google_maps_flutter_web
Web platform implementation of google_maps_flutter.
88Compare - google_maps_flutter_android
Android implementation of the google_maps_flutter plugin.
82Compare - google_maps_flutter_ios
iOS implementation of the google_maps_flutter plugin.
81Compare - google_maps_flutter
A Flutter plugin for integrating Google Maps in Android, iOS, and web applications.
90Compare
Works with
Packages commonly used together with google_navigation_flutter: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfacegoogle_navigation_flutter depends on itReusable base class for platform interfaces of Flutter federated plugins.
- stream_transformgoogle_navigation_flutter depends on itExtension methods adding common stream transform operators
- flutter_plugin_android_lifecyclegoogle_navigation_flutter depends on itFlutter plugin for accessing Android Lifecycle within other plugins.