Get User Current Location in Flutter (+ show in Google Maps)

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

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

  • @HeyFlutter
    @HeyFlutter  2 года назад +5

    Notice this video is NOT created by "JohannesMilke", please stay fair towards him - every start is not simple!
    12 Week Flutter Training from Newbie to Expert: heyflutter.com
    Source Code: github.com/JohannesMilke/user_location

    • @devdecode
      @devdecode 2 года назад

      are you have new video ?

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

      where is Johannes Milke ?

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

      Source Code is not accessible. I don't get the email

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

      I want an explanation for this. not just "please stay fair towards him". make a blog explain the situation and place it in your pinned comment!

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

      Thank you for this tutorial, I cannot request the sourcecode, when I click the 'request' button on the GitHub page, I get a 'unsecure connection' error.

  • @aliounesakho8582
    @aliounesakho8582 2 года назад +12

    I was not ready for the open map I was actually searching for this. Thanks a lot

    • @HeyFlutter
      @HeyFlutter  2 года назад +2

      Glad it was helpful, @aliounesakho8582 😀

  • @muniralmeslaty9602
    @muniralmeslaty9602 2 года назад +3

    your are the best flutter programmer in youtube
    when i have a flutter project your channel and videos are my reference

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Happy to know @muniralmeslaty9602! 🙂👍

  • @shivamgupta-cq2yk
    @shivamgupta-cq2yk 2 года назад +1

    Thank you so much after my suggestion you have started google map.

    • @HeyFlutter
      @HeyFlutter  2 года назад

      You are welcome, @user-lt7nl9qk5b 😊

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

    Very very nice! Helped me a lot!

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

      Glad you liked it, @uDropper 😀

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

    There is a lot of potential on this subject, I sincerely there is an update for this one. Cheers!

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

      Thank you, David Covarrubias! 🙂

  • @Zogaalalwany-k5w
    @Zogaalalwany-k5w 4 месяца назад

    great video, thx you help me a lot

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

      Glad it was helpful, @Zogaalalwany-k5w 😀

  • @NurFlutterDev
    @NurFlutterDev 2 года назад +1

    thank you very nice and clearly video

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Glad it was helpful, @nurzhigit751 😀

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

    thank you!
    your video help me a lot in my FYP

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

      Glad it was helpful, @HazratAli-tl3yc 😀

  • @JeevanRaj28
    @JeevanRaj28 10 месяцев назад +1

    In your code i worked on it but i have error in the code {exception is occured and the link is null} any solution

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

      Thank You @user-jr5br2ww4h! Follow this link: stackoverflow.com/questions/64278595/null-check-operator-used-on-a-null-value
      I hope you will get your answer 🙂

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

    Great video so thanks

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

      You are welcome, @dilansandeepa1956!

  • @SalarAzad
    @SalarAzad 2 года назад

    this is very useful, thank you

    • @HeyFlutter
      @HeyFlutter  2 года назад

      You are welcome, Salar Azad!

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

    hey do you know how to get city or country name instead of longitude and latitude

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

      Thank You @vishvajeetnayal7957! Follow this link: stackoverflow.com/questions/54761683/get-full-address-details-based-on-current-locations-latitude-and-longitude-in-f
      I hope you will get your answer 🙂

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

    Hey thanks for the video.Btw do u have anything which tracks the location of the user device even when the user has closed the app but is running in the background as i tried to find it everywhere but couldn't get it working, so can u please share anything or can u make a video about that?

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

      Thanks for the idea, @seetheworld3839! 🙂 I have added it to my list of ideas for future videos!

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

      Did u found the way to do it?? I also want to implement it in my app

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

    hello mike, just want to update in 2:15, the code should update to, await await launchUrl(Uri.parse(googleURL))
    , im using sdk version 2.16 and flutter version 2.10, if i write the code like the video its error, and i find that the solution... use await launchUrl(Uri.parse(googleURL)).... thank you, hope this comment help other people who get same error...

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

      Great, Thank you @ronaldliansugihartono8919!

  • @wasss3745
    @wasss3745 2 года назад +1

    Hi i wish you will make a tutorial how to insert it in mysql database

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thanks for the idea, Wa Sss! 🙂 I have added it to my list of ideas for future videos!

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

    0:21 how can we enable the location service via the app, here you have enabled manually.

    • @HeyFlutter
      @HeyFlutter  7 месяцев назад +2

      Thank You @anozGosai! Follow this link: flutterqueen5.medium.com/device-gps-location-in-flutter-ff24ebe36af5
      I hope you will get your answer 🙂

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

    thank u bro

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

      You are welcome, @Rawandlazez!

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

    how can we add bloc state management in place of setstate??

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

      Hey 😊, @Arjuns_World! Check out this video: ruclips.net/video/KdZAhq93Ih8/видео.html I hope it'll help video

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

    Hi, I updated to Flutter 3.7 and the project I'm working on doesn't build because of deprecated methods in the package, someone ahd the same issue? there's an option to geolocator package?

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

      Thank you, Matias Gold! 🙂. Update deprecated widgets code.

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

      if the link works but still cant launch, i think you should add 'android.intent.action.VIEW' which allows the scheme for 'https'. problem for android API 30 +

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

    thanks for the video
    how can i get the name of the place not the latitude and longitude ??

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

      Thank you, @chihab3829! 🙂. Try to provide enough details with your question.

  • @RandalLSchwartz
    @RandalLSchwartz 2 года назад

    gps translates to "Samundrapur, Maharashtra, India" :)

  • @rsocial453
    @rsocial453 2 года назад

    Thank youu

    • @HeyFlutter
      @HeyFlutter  2 года назад

      You are welcome, @rsocial453 😊

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

    thanks

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

      You are welcome, Rahmat 😊

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

    I have problem that the map not shown is that needs payment?

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

      Thank You Omar Falah! Follow this link: stackoverflow.com/questions/55431120/google-map-in-flutter-doesnt-appear
      I hope you will get your answer 🙂

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

    Sir how we can save it in firebase and then fetch please help me.

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

      Thank You khabib ali! Follow this link: stackoverflow.com/questions/69914644/how-to-save-users-location-after-the-user-has-logged-into-the-mobile-applicatio
      I hope you will get your answer 🙂

  • @muhammadqazmouz6604
    @muhammadqazmouz6604 2 года назад

    Your videos so awesome, would you please record some videos about AWS Amplify?
    Firebase great but it's not every thing, and it's blocked in my country 😭😭

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thanks for the idea, Muhammad Qazmouz! 🙂 I have added it to my list of ideas for future videos!

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

    How can I spoof the gps location in flutter ?

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

      Thank You Uzer Sayed! Follow this link: stackoverflow.com/questions/61789646/how-to-detect-mock-location-in-flutter-for-ios-and-android
      I hope you will get your answer 🙂

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

    How track delivery boy location in user app

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

      Hey, @pradeepg4498 🙂 you can use firebase real-time db to update delivery boy's location and read same on user side.

  • @한울-f5e
    @한울-f5e 2 года назад

    감사합니다

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

    can anyone send me the source code for this one

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

      Thank You @janani693!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

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

    Navigate in APp doesn't work.

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

      Thank you, @iqaiserhussain! 🙂. Try to provide enough details with your question whenever you face any issue.

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

      @@HeyFlutter when the map opens and user picks pin location to some destination. After this, navigate in app button appears and start button as well. When you click on them map disappears and error appears that link doesn't work.

  • @andikasujanadi
    @andikasujanadi 2 года назад

    Please don't use Ctrl Z

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thanks, for the feedback @andikasujanadi2438! 🙂

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

    hi, good tutorial but im unable to get my flutter emulator to open the google map link, the link is correct as i can copypaste it and it opens google map.
    Not sure how to fix error messages:
    I/UrlLauncher( 4379): component name for www.google.com/maps/search/?api=1&query=37.4219983,-122.084 is null
    I/UrlLauncher( 4379): component name for flutter.dev is null
    [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Could not launch
    I have done all the set up shown in the video.
    What are the possible reasons for the application being unable to launch the url?

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

      Thank You @clre5909! Follow this link: stackoverflow.com/questions/74884147/errorflutter-runtime-dart-vm-initializer-cc41-on-url-launcher
      I hope you will get your answer 🙂

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

      @@HeyFlutter thank you, not sure why but when i restarted my laptop, it worked without needing your fix 😂😂