In current world of mobile application Live location tracking is very useful function. It would be better if we can track live location without server, Then we can use Firebase as back-end.

You can Download Source Code via Github.

Form here we start to implement, First we add lib file in .yaml file

Add the following libs to your pubspec.yaml file:

google_maps_flutter: ^0.5.21+15
location: ^2.3.5
firebase_database: 3.1.6

We will see how to integrate google maps in your flutter application using google_maps_flutter plugin . Note: Please add the API KEY in the “AndroidManifest.xml”

To generate an API key use this link –https://cloud.google.com/maps-platform/

We will enable Real-time database of Firebase and Edit Rule of database

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

You can Download Source Code via Github.

Share Live Location as Host.

You can Track Shared Device Live Location