Skip to content

ibrahim-demirci/google_maps_flutter_basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Marker And Camera Control in Flutter

Add markers and change camera position in Google Maps.

Screenshots

Implementation

Add dependencies to pubspec.yaml file.

google_maps_flutter: ^0.5.24+1

How to get API Key : https://developers.google.com/maps/documentation/android-sdk/get-api-key
You have to get API key (I will explain soon) and add this code

<meta-data android:name="com.google.android.geo.API_KEY"  
                                   android:value="YOUR KEY HERE" /> 

in project/android/app/src/main/AndroidManifest.xml file like the code below.
How to get API Key : https://developers.google.com/maps/documentation/android-sdk/get-api-key

 <application
                   android:name="io.flutter.app.FlutterApplication"
                   android:label="flutter_maps_basics"
                   android:icon="@mipmap/ic_launcher">
           
                   <meta-data android:name="com.google.android.geo.API_KEY"
                       android:value="YOUR KEY HERE" />
                   <activity
                       android:name=".MainActivity"
                       android:launchMode="singleTop"
                       android:theme="@style/LaunchTheme"
                       android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
                       android:hardwareAccelerated="true"
                       android:windowSoftInputMode="adjustResize">
                       

About

Add markers and change camera position in Google Maps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published