flutter – google maps demo
a flutter example to use google maps in ios and android apps via the embedded maps plugin.
android
specify your api key in the application manifest android/app/src/main/androidmanifest.xml
:
<manifest ...
<application ...
<meta-data android:name="com.google.android.geo.api_key"
android:value="your key here"/>
ios
supply your api key in the application delegate ios/runner/appdelegate.m
:
#include "appdelegate.h"
#include "generatedpluginregistrant.h"
#import "googlemaps/googlemaps.h"
@implementation appdelegate
- (bool)application:(uiapplication *)application
didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {
[gmsservices provideapikey:@"your key here"];
[generatedpluginregistrant registerwithregistry:self];
return [super application:application didfinishlaunchingwithoptions:launchoptions];
}
@end
![[2025] Flutter Google Maps Example (2OS) google maps](https://i0.wp.com/flutterawesome.com/content/images/2018/12/screen1.png?w=770&ssl=1)
![[2025] Flutter Google Maps Example (2OS) screen2--1-](https://i0.wp.com/flutterawesome.com/content/images/2018/12/screen2--1-.png?w=770&ssl=1)
![[2025] Flutter Google Maps Example (2OS) screen3](https://i0.wp.com/flutterawesome.com/content/images/2018/12/screen3.png?w=770&ssl=1)
![[2025] Flutter Google Maps Example (2OS) screen4](https://i0.wp.com/flutterawesome.com/content/images/2018/12/screen4.png?w=770&ssl=1)
![[2025] Flutter Google Maps Example (2OS) screen5](https://i0.wp.com/flutterawesome.com/content/images/2018/12/screen5.png?w=770&ssl=1)
Comments are closed.