Google Map 🗺️ Challenge: Feature Rebuild 🛠️
Channel: Luca Nicoletti
Date: 2024-04-07

The challenge: recreate the button look and behaviour (part of it) from GoogleMap (the locate me button) in your own Google Map application. 

00:00 Intro
00:33 What we want to achieve
01:00 Gathering the icon https://www.flaticon.com/free-icon/target_565949
01:15 Setting up the Map
02:30 Using the FloatingActionButton
04:12 Handling an initial click on the button
05:10 Setting up a LocationProvider
05:28 Listening to location updates
06:07 Location callback
06:50 Location source
07:45 Updating the source from the callback
08:15 Register the callback and start the updates from the second click (if the permissions are granted)
08:31 Get your emulator to work properly
08:54 The end result
09:11 Outtro 

Let me know in the comments below 👇 if you enjoyed this format and if I should do more of these videos, recreating existing UIs and interactions from well-known apps.

Want to support the channel?
Buy me a coffee! (Programmers need it) 
https://www.buymeacoffee.com/ZB0OG2T