Skip to main content

Posts

Showing posts from October, 2020

Creating a Live Location Tracking app with Flutter

I took a drive and recorded my screen. The pin represents my car driving in real-time. I used clideo.com to speed up the video as it was kinda slow.  I have a client who might be interested in me making them a restaurant ordering app in which their customers would order their food, pay, and then be able to track the food delivery to their house. I wanted to try out creating the delivery tracking part to make sure that I can accomplish this in Flutter.  Turns out I can! I am going to summarise how I did it below. I found a code lab for adding Google Maps to a Flutter app. So I got the map to appear in my app beautifully. I can even drag the map and zoom in. For the initial location for the map to open up to I looked up the coordinates of my house and entered them into a variable called home that contained the method latLng . This method comes from the Google Maps package, which I got on pub.dev . You need to create a controller to be able to interact the Google Maps widget. To set the