Flutter Google Map With Live Location Tracking

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • 🔥Flutter UI Kit: cutt.ly/rFOscFo
    In this Flutter Tutorial, You will learn to use Google Maps in #flutter with some customization, like How to set Custom Image Marker and Draw Route Direction Polylines on Google Map.
    ✅ Starting Code: cutt.ly/BKgylib
    ✅ Complete code: cutt.ly/XKrC2sp
    Learn:
    👉 Adding Google Maps to Flutter
    👉 Custom Marker on Google Map
    👉 Draw Route Direction Polylines
    👉 Implement Real-time Location Updates
    ►For the 3D intro, I'm using Rotato: bit.ly/3heGagj
    ►Support Us: / theflutterway
    ► Social Media
    GitHub: github.com/abuanwar072
    Twitter: / theflutterway
    Twitter: / abuanwar072 (my personal profile)
    Facebook: / theflutterway
    ► Timestamps
    0:00 Intro
    0:12 Project Setup ⚙️
    1:31 GoogleMap Widget
    1:47 Marker 📍
    2:24 Draw route 〰
    3:37 Current Location 🗺
    4:35 iOS Simulator route setup🍎
    4:55 Android Emulator route setup
    5:37 Map camera update on location change
    6:58 Custom Marker on Google Map📍
    8:18 Flutter Shop UI Kit 🔥
    Thanks for watching!
    Make sure to like + Subscribe For More!

Комментарии • 198

  • @sontranthanh5564
    @sontranthanh5564 Год назад +2

    omg, I've been doing a project about google Maps and everything relevant for a month, now I saw your video, that's very helpful. Thank you so much because of keeping doing this.

  • @kenbinta2246
    @kenbinta2246 Год назад +15

    This dropped in time when I needed it

  • @mukhtaralikhan6478
    @mukhtaralikhan6478 5 месяцев назад +5

    I was searching for this tutorial for a long time, finally I found it, thank you very much. Make more tutorials on Google map, if possible😍

  • @callmeyourbae2859
    @callmeyourbae2859 Год назад +1

    It feels like you read my mind, right now, I really need this for my thesis, thankyou

  • @mohanpremathilake915
    @mohanpremathilake915 Год назад +6

    I was looking for this for a long time. thank you very much!

  • @dantedt3931
    @dantedt3931 Год назад

    Best Flutter channel.Thanks for this.

  • @azhagappankathiresan5338
    @azhagappankathiresan5338 Год назад

    The best tutorial for live location tracking

  • @VitorFThome
    @VitorFThome Год назад

    Thank you for the tutorial!

  • @SportsWorld-eh4mg
    @SportsWorld-eh4mg Год назад

    Wow so beautifully explained

  • @rise4gamers506
    @rise4gamers506 Год назад

    The best tutorial . thanku man

  • @metatronicx
    @metatronicx Год назад +3

    You deserve more subs man. Great work thank you

  • @prasertpromvong3031
    @prasertpromvong3031 Год назад

    Thank you for great tutorial.

  • @mruduladdipalli5417
    @mruduladdipalli5417 Год назад +2

    Awesome explanation

  • @SalarAzad
    @SalarAzad Год назад +3

    amazing tutorial! it helped me a lot, thank you

    • @hassamkayani2521
      @hassamkayani2521 Год назад +1

      void getPolypoint()async{
      PolylinePoints polylinepoint=PolylinePoints();
      PolylineResult result=await polylinepoint.getRouteBetweenCoordinates(
      gooleApiKe,
      PointLatLng(sourceLocation.latitude,DestionationLocation.longitude ),
      PointLatLng(DestionationLocation.latitude, DestionationLocation.longitude)
      );
      }
      gooleApiKe, error in this googleApiKey please solve this

  • @gyanratan8247
    @gyanratan8247 Год назад

    I'm in tears I found this Needed very much
    Thank you so much sir
    Can we show share the live location on another device (like tracking )

  • @MultiSciGeek
    @MultiSciGeek Год назад

    I don't know what this is but it seem perfect for what I need!

  • @gonzaloortiz608
    @gonzaloortiz608 Год назад

    you're a genius, thank you!

  • @uixxy
    @uixxy Год назад +6

    Awesome tutorial for beginners 🔥

    • @TheFlutterWay
      @TheFlutterWay  Год назад +1

      Thank you 🙌

    • @hassamkayani2521
      @hassamkayani2521 Год назад

      void getPolypoint()async{
      PolylinePoints polylinepoint=PolylinePoints();
      PolylineResult result=await polylinepoint.getRouteBetweenCoordinates(
      gooleApiKe,
      PointLatLng(sourceLocation.latitude,DestionationLocation.longitude ),
      PointLatLng(DestionationLocation.latitude, DestionationLocation.longitude)
      );
      }
      gooleApiKe, error in this googleApiKey please solve this

  • @user-nw3rh2pn4o
    @user-nw3rh2pn4o 4 месяца назад

    Amazing video for flutter google map

  • @davidtzirima9301
    @davidtzirima9301 Год назад +1

    woow thanks man , i like the voice overs ones

  • @Pedro5antos_
    @Pedro5antos_ Год назад

    AWESOME, thanks for shairing!

  • @williamromerovela
    @williamromerovela Год назад

    This tutorial is great solution for many of us which we are looking for.

  • @realrk95
    @realrk95 Год назад

    Amazing. Needed this

  • @LIGHT-en5yr
    @LIGHT-en5yr Год назад

    you are the best flutter dev thank you.

  • @peternkane483
    @peternkane483 Год назад

    Excellent I appreciate 👍

  • @shalarasgar3276
    @shalarasgar3276 9 месяцев назад

    Thank you very much 👍

  • @seendeol6787
    @seendeol6787 Год назад

    Hi I like your video but I've a question. Is there any problem with location pack. I couldn't add it to dependencies. Do you have any idea ?

  • @anuragdeshmukh1575
    @anuragdeshmukh1575 Год назад

    Thanks man..awesome tutorial.

  • @kouassiangeyao6057
    @kouassiangeyao6057 Год назад

    Thank you very much

  • @alapanroy1114
    @alapanroy1114 Год назад +1

    Do you have any beginners course?? Your way of explaining things good. 😊

  • @atholabahizire
    @atholabahizire Год назад

    Great one

  • @kuysberg271
    @kuysberg271 Год назад

    Thanks you very much

  • @naveedkaimkhami2695
    @naveedkaimkhami2695 Год назад

    Thank youuuuu

  • @doctorcode2636
    @doctorcode2636 Год назад

    Nice Tutorial.

  • @nhatlevuminh7031
    @nhatlevuminh7031 Год назад +1

    Can you do this with flutter_map plugin and with geoapify or openrouteservice api instead of google map?

  • @rawanadel5428
    @rawanadel5428 Год назад +2

    Hello and thank you for the amazing informative video.
    I was wondering if this could be used for indoor navigation in a large institute (my university) if it is already on google maps but there are direct routes between the buildings

    • @salehjamali6716
      @salehjamali6716 10 месяцев назад

      were u able to make the indoor navigation app cuz i also need help with it

    • @user-ux3ks1bi7x
      @user-ux3ks1bi7x 7 месяцев назад

      @@salehjamali6716 GPS satellites don't work properly inside buildings.

  • @shohruhmasharipov8524
    @shohruhmasharipov8524 4 месяца назад

    Which apis should I enable for api key in Restrict key?
    Please answer my question!
    is not drawing a line in my project

  • @tarunjain134
    @tarunjain134 8 месяцев назад +1

    If we move from point a to b in reality , will the app show our collect position as we move , please tell ?

  • @learnandroidwithalamgir
    @learnandroidwithalamgir Год назад +1

    এই চ্যানেলটা যে বাংলাদেশের সেটা অনেকেই জানেন না। 💚💚💚

  • @theGRFN_13
    @theGRFN_13 Год назад

    Is it possible to use this map and set a waypoint to a bluetooth powered device ie an airtag?

  • @adjeirichard9239
    @adjeirichard9239 Год назад

    i really love your video,very entertaining. But how can i get the location into textformfield ?

  • @desiaraj3278
    @desiaraj3278 Год назад

    Thank you so much

  • @userprod2825
    @userprod2825 2 месяца назад +1

    the polyline direction is using Google Maps Directions API right ? is it paid ? what is the pricing mechanism on it. i don't have clear information on their web. many thank you 🙏

  • @shrivastavvikas4490
    @shrivastavvikas4490 Год назад +1

    How can i enable the location and speed setting page in physical device? You are doing on simulator .i have to do in physical device. waiting for your reply?

  • @melih-guler
    @melih-guler Год назад

    How can I put more than two dots, respectively showing directions between them?

  • @Bootngoals
    @Bootngoals Год назад

    Just what I need. Thank you.

  • @taufiqhasib9720
    @taufiqhasib9720 Год назад +1

    Sir, for this type of of google map is taken any charge or cost by google ?

  • @parlayanyldzlar8128
    @parlayanyldzlar8128 Год назад

    In this video, I can't understand which api we will be charged for. I watch a lot of videos. For example, in this video, we will be charged through the static view api and the places api, after all, there are both. Can you help?

  • @BboyAlekSenenoi
    @BboyAlekSenenoi Год назад +2

    Became a patron but having a hard time understanding source code with code of this video. For example, there is a "map_sample.dart" but not an "order_traking_page.dart". It appears they are the same. But how is the code edited in "map_sample.dart" in relation to following along with this video?

    • @TheFlutterWay
      @TheFlutterWay  Год назад

      If you want to follow along with this video check this one, www.patreon.com/posts/live-order-on-67926457

  • @SubodhKumar-mh7ni
    @SubodhKumar-mh7ni 4 месяца назад

    Can we use same for flutter web. And wanted to use route with more than 2 lat long

  • @aminsirwan1329
    @aminsirwan1329 7 месяцев назад

    bro to use google maps need login in google could to enable this API ? or don't needs that just like you i can use google maps ?

  • @user-dm9mp2vj8l
    @user-dm9mp2vj8l 5 месяцев назад

    its good if u can show how we can add packages too

  • @tammodirksen1408
    @tammodirksen1408 Год назад

    But once you call setstate won’t this mean extra costs going to Google for reloading the entire app? If you update the location you certainly want to avoid map reloads, right? Or am I wrong?

  • @sudhirmanandhar4818
    @sudhirmanandhar4818 Год назад

    Hello sir i would be kind of you to do a video on dio caching and offline network handling

  • @rezashah22
    @rezashah22 Год назад

    Thanks for putting together this nice and awesome flutter tutorial

  • @shortx007
    @shortx007 Год назад +1

    can u create freelance on demand projects?

  • @AlexanderSuraphel
    @AlexanderSuraphel Год назад +1

    Flutter UI Kit looks great! It's a steal to get all those pages for just $99. Do you provide updates after purchase for a limited time like how Web Dev template creators do?

  • @Stranger77704
    @Stranger77704 Год назад

    Amazing

  • @taimoorrajput2597
    @taimoorrajput2597 Год назад +1

    Love you for this but can you make a complete food delivery app including live tracking.

  • @vianeyvargas7736
    @vianeyvargas7736 Год назад +1

    Brigth video Thanks. Please upload using flutter bloc Google maps, tracking, Location

  • @Jiayoujiayoulalalla
    @Jiayoujiayoulalalla 2 месяца назад

    can you make a geofencing tutorial as well?

  • @keithbacalso9433
    @keithbacalso9433 Год назад

    I followed everything, but my currentlocation is not moving, but when I print the LAT and LON they change a little bit. The marker of my current location just moves a little bit the ngoes back to normal position. :( :(
    I am using Windows Android Emulator. Do I have to move in my current location in order to see my current location marker move? I guessthat is the problem of Windows or Android Emulator? Because Macs has `Freeway Drive`?

  • @deenaadil6153
    @deenaadil6153 Год назад

    How Can I use text instead of image inside the marker icons?

  • @dedehidayat6304
    @dedehidayat6304 Год назад

    Cool demo with a simplest code

  • @arfa4749
    @arfa4749 6 месяцев назад

    i want to show multiple markers as it is a tracking app
    Is it possible in this kindly reply its urgent

  • @gatesbill447
    @gatesbill447 Год назад +1

    how can i show traffic for polyline bro. thanks

  • @chamithudinsara9557
    @chamithudinsara9557 11 месяцев назад

    hi this was amazing❤
    how we can add white plane customized map instead of using google map,could u please do the tutorial for it.

    • @qudusolanrewaju2500
      @qudusolanrewaju2500 11 месяцев назад

      Hi how were you able to clone the starting project

  • @carminefederico2091
    @carminefederico2091 Год назад +1

    great tutorial! i have only one question. In the video at min 4:07 u restart the app for update current location from null to current lat lng. Know you a method without restart the app or maybe update automatically the current location without restart the app?

    • @gtkmike5141
      @gtkmike5141 Год назад +3

      Same issue here. infact the app is crashing When I try to hot reload. the currentLocation variable is always null and keep on “Loading” any resolution for this issue?

    • @syedhussain5488
      @syedhussain5488 Год назад

      ​@@gtkmike5141 I am facing the same issue after completing the code snippet from the video.
      Did you resolve?

    • @rejo8224
      @rejo8224 Год назад

      did you resolve?

    • @rejo8224
      @rejo8224 Год назад

      @@syedhussain5488 did you resolve?

    • @rejo8224
      @rejo8224 Год назад

      @@gtkmike5141 did you resolve?

  • @ayoubamg1
    @ayoubamg1 3 месяца назад

    hello, Im setting all the dependecies for google map but it's not working, while executing the screen stays white the map not displaying

  • @albertowong5069
    @albertowong5069 Год назад +1

    LocationData is a class ? where find it?

  • @fayisRahman
    @fayisRahman 10 месяцев назад

    is there a way to remove the polylines as you move forward..(i tried the directionApi request in a loop using a timer)... i wamr to know if there is any other way

    • @LetsSink
      @LetsSink 3 месяца назад

      I think it should be possible if you generate polylines again after updating the current location variable

  • @carlosjohnson4421
    @carlosjohnson4421 7 месяцев назад

    okay i guess im doing something wrong here, for the current location im getting the default google location how can i change it

  • @jojoji54
    @jojoji54 Год назад +1

    I have a little problem with this code. Using this kind of location, I can't use Zoom option. I mean, when I'm trying to zoom out, the camera positions always return to the same state/position,, any idea ?

    • @dawnriddler
      @dawnriddler 8 месяцев назад

      Is this at the end, after adding the icons? Cause I have the same problem. I click the + but it keeps zooming out.

    • @jojoji54
      @jojoji54 7 месяцев назад

      I solved my problem, this caused because the camera zoom is always reloading from the widget@@dawnriddler

  • @nasirkhalil5112
    @nasirkhalil5112 Год назад

    does that need billing or need to pay for showing polylines? because every time i try it returns empty array/list of polyline results

    • @sevikharvarid9893
      @sevikharvarid9893 Год назад

      Hi, have you find the solution ?

    • @nasirkhalil5112
      @nasirkhalil5112 Год назад

      @@sevikharvarid9893 yup you need to set your billing method on Google console. Polyline api is paid.

  • @rvN7HD
    @rvN7HD 6 месяцев назад +1

    please give me name of the song at the end of the video

  • @chinhonglao6210
    @chinhonglao6210 3 месяца назад

    Excuse me,
    does google charge us from using this api ? or is it some kind of our creativity, which mean we only use google map to display map?

  • @noumanqureshi3503
    @noumanqureshi3503 Год назад +2

    Hi how can I set my source location as the current location of device and destination as the location from firestore?

    • @ridasyed5087
      @ridasyed5087 9 месяцев назад

      I also want to do this..... Help me plz

    • @ridasyed5087
      @ridasyed5087 9 месяцев назад

      Did you do that ?

  • @farazmughal8505
    @farazmughal8505 Год назад

    I have stuck in one issue that my marker is not moving however my LatLng is updating continuously

  • @ibrahimanimasahun9431
    @ibrahimanimasahun9431 Год назад

    Just in time

  • @KamranKhan-jy1it
    @KamranKhan-jy1it Год назад

    Great work..I think you will be work better if it is true show it some more useful content..

  • @seetheworld3839
    @seetheworld3839 11 месяцев назад

    What if the app is closed will it still detect location ? Please reply!

  • @user-ih4rk8yt2h
    @user-ih4rk8yt2h 11 месяцев назад

    Where can i get the custom markers

  • @aimanilyasa4365
    @aimanilyasa4365 Год назад

    is the google map API need to pay to be use?

  • @keithbacalso9433
    @keithbacalso9433 Год назад

    Next Up, please do Stripe flutter payment tutorial 😃 please please please I would love to learn it from you

  • @felixarchibong7337
    @felixarchibong7337 11 месяцев назад

    thanks for the video but the link to the complete source code is not working. can you share a new link thanks

  • @fuhovu2225
    @fuhovu2225 Год назад

    tks sir

  • @ahmedfouda45
    @ahmedfouda45 Год назад +2

    hello friend great video but there is an issue at polyline not drawing route on the map, please tell me how could i solve this issue?

  • @eokdev
    @eokdev Год назад

    Constantly getting a null check error for LocationData? currentLocation

  • @khuongnguyen3544
    @khuongnguyen3544 Год назад

    is the API used in this project billing-enabled, i'm having some trouble and think that might be the prob

    • @TheFlutterWay
      @TheFlutterWay  Год назад +1

      You should use your own API.

    • @khuongnguyen3544
      @khuongnguyen3544 Год назад

      @@TheFlutterWay I'm using my own non-billing API and having some problems, just asking to make sure billing is the problem here. Like, is billing a MUST to use the Directions API ?

    • @TheFlutterWay
      @TheFlutterWay  Год назад

      @@khuongnguyen3544 To use the Directions API, you must enable billing on each of your projects and include an API key with all API or SDK requests. The Directions API uses a pay-as-you-go pricing model.

  • @theworldanime5718
    @theworldanime5718 4 месяца назад

    मैं अपने पीसी से ऑडियो सुनने के लिए बहुत इच्छुक हूं
    main apane peesee se odiyo sunane ke lie bahut ichchhuk hoon

  • @krishankantgour6982
    @krishankantgour6982 Год назад +1

    plz make video on full text search from firebase

  • @havk.b2446
    @havk.b2446 Год назад

    I have problems when launching the app, it stucked in loading screen!!! please help

  • @jackle7425
    @jackle7425 Год назад +6

    I found an issue from your video, you are using setState method all the time when the current marker is moving. If it is true, you have to set delayed time to call setState. Thanks for reading my ideas.

    • @TheFlutterWay
      @TheFlutterWay  Год назад +2

      Thank you so much, great idea!

    • @abhishekjain5986
      @abhishekjain5986 Год назад

      can you please elaborate how you are saying to use delay ?

    • @jackle7425
      @jackle7425 Год назад

      @@abhishekjain5986 The author is using setState method all the times, if you do not delay your app will be lagged and could crash any time

    • @abhishekjain5986
      @abhishekjain5986 Год назад

      @@jackle7425 thanks for replying. Do you have a workaround for that?

    • @AlexanderSuraphel
      @AlexanderSuraphel Год назад +3

      @@abhishekjain5986 you can change the interval as such await location.changeSettings(accuracy: LocationAccuracy.high, interval: 1, distanceFilter: 0.1);

  • @MateusFernandes-fy6ke
    @MateusFernandes-fy6ke 2 месяца назад

    works on web?

  • @moazahmed5388
    @moazahmed5388 Год назад +1

    @The Flutter Way
    you may wanna remove your api key at 1:17
    take care brother.

  • @lahirutharaka3810
    @lahirutharaka3810 Год назад +2

    it gives an error
    CastError (Null check operator used on a null value)

  • @heshamelsaady3176
    @heshamelsaady3176 Год назад

    Why polyline doesn't appear in my emulator?

  • @DailyFrenzy4u
    @DailyFrenzy4u 12 дней назад

    a request to you that please keep the video speed as normal,. Too fast to catch. Thank you.

  • @dakaradakaradakara699
    @dakaradakaradakara699 15 дней назад

    How to use this on flutter flow

  • @gtkmike5141
    @gtkmike5141 Год назад +1

    The result of this program is “ Loading” only. the current location variable is always throwing null result. any solution for that?