Flutter Google Maps - Maps, Markers, Polylines, Places API & Directions API

Поделиться
HTML-код
  • Опубликовано: 12 июн 2024
  • Master Google Maps in Flutter: Comprehensive Guide to Google Maps Platform Integration. Discover how to integrate and harness the power of Google Maps in your Flutter applications. Explore the multitude of solutions provided by the Google Maps Platform, such as the Maps SDK, Places API, and Directions API, to display interactive maps, enable location search, and provide route guidance for your users.
    🚀 Learn Flutter / Build Apps 👇
    📖 Courses • www.atomsbox.com/courses
    ✍ Templates • www.atomsbox.com/templates
    🧑‍💻 Bespoke app dev • www.atomsbox.com/develop
    💾 GitHub • www.github.com/maxonflutter
    00:00 Introduction
    00:11 Setting Up Google Maps
    01:40 Obtaining Android and iOS SDK Credentials
    03:33 Exploring Google Maps Sample Code
    05:18 Adding Markers to Your Maps
    07:45 Drawing Polylines and Polygons on Your Maps
    10:55 Implementing Location Search with Places API
    19:05 Updating Marker Position and Drawing Polygons with Tap Interaction
    23:20 Retrieving Directions Between Two Places Using Directions API
    32:28 Adjusting Map Bounds Based on Directions API Results
  • НаукаНаука

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

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

    🚀Learn Flutter / Build Apps 👇
    📖📱Courses • www.atomsbox.com/courses
    ✍📱Templates • www.atomsbox.com/templates
    🧑‍💻📱Bespoke app dev • www.atomsbox.com/develop

  • @fayazahmad-df3re
    @fayazahmad-df3re 2 года назад

    Yes ...We want more about Gmaps..Thanks Man!!!

  • @senabdulgani
    @senabdulgani 3 месяца назад +2

    This video is the best yet between that I watched others about google maps.

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

    Really very helpful video. Good job.. Lot of things to know in this video

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

    Very very helpful, Im interested in learning about multiple users tracking within a boundary or route

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

    I found "Gold" here, Thanks very much for the content, keep up the good work.

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

    A job well done 💪🏽. You killed it man , this video really helped me a lot

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

    You're the best yet! Thank you very much!😁😁

    • @sumiabbasi2771
      @sumiabbasi2771 Месяц назад

      V/AudioManager(28155): playSoundEffect effectType: 0
      E/flutter (28155): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Unexpected character (at character 1)
      E/flutter (28155):
      E/flutter (28155): ^
      E/flutter (28155):
      E/flutter (28155): #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1376:5)
      E/flutter (28155): #1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1243:9)
      E/flutter (28155): #2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:908:22)
      E/flutter (28155): #3 _parseJson (dart:convert-patch/convert_patch.dart:35:10)
      E/flutter (28155): #4 JsonDecoder.convert (dart:convert/json.dart:610:36)
      E/flutter (28155): #5 JsonCodec.decode (dart:convert/json.dart:216:41)
      E/flutter (28155): #6 jsonDecode (dart:convert/json.dart:155:10)
      E/flutter (28155): #7 locationService.getPlaceId (package:flutter_application_silentresponder/location.dart:219:24)
      E/flutter (28155):
      E/flutter (28155): #8 locationService.getPlace (package:flutter_application_silentresponder/location.dart:228:20)
      E/flutter (28155):
      E/flutter (28155): #9 MapSampleState.build. (package:flutter_application_silentresponder/google_map.dart:83:35)
      E/flutter (28155):
      E/flutter (28155): please help to resolve this error if you know

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

    Your tutorial has helped me a ton! Thank you so much for the excellent video!

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

      Great to hear!

    • @sumiabbasi2771
      @sumiabbasi2771 Месяц назад

      V/AudioManager(28155): playSoundEffect effectType: 0
      E/flutter (28155): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Unexpected character (at character 1)
      E/flutter (28155):
      E/flutter (28155): ^
      E/flutter (28155):
      E/flutter (28155): #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1376:5)
      E/flutter (28155): #1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1243:9)
      E/flutter (28155): #2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:908:22)
      E/flutter (28155): #3 _parseJson (dart:convert-patch/convert_patch.dart:35:10)
      E/flutter (28155): #4 JsonDecoder.convert (dart:convert/json.dart:610:36)
      E/flutter (28155): #5 JsonCodec.decode (dart:convert/json.dart:216:41)
      E/flutter (28155): #6 jsonDecode (dart:convert/json.dart:155:10)
      E/flutter (28155): #7 locationService.getPlaceId (package:flutter_application_silentresponder/location.dart:219:24)
      E/flutter (28155):
      E/flutter (28155): #8 locationService.getPlace (package:flutter_application_silentresponder/location.dart:228:20)
      E/flutter (28155):
      E/flutter (28155): #9 MapSampleState.build. (package:flutter_application_silentresponder/google_map.dart:83:35)
      E/flutter (28155):
      E/flutter (28155): please help to resolve this if you know

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

    great v.tutorial! Would be nice to add autocomplete places example! Thanks!

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

    helpful thanks,continue teaching !

  • @3bdalah3ayousha43
    @3bdalah3ayousha43 2 года назад

    Thanks, it helped me a lot.

  • @someshsahu4638
    @someshsahu4638 11 месяцев назад +1

    nice video thank you so much 🙏🏼🙏🏼🙏🏼

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

    Thanks for this wonderful content... ❤️❤️❤️❤️

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

    Thanks for this video😊

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

    When I enter my destination and click on it it takes me back to the home page but the progressDialog runs indefinitely. Nothing happens.
    What is the problem please?

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

      Not sure, cause it depends on your code! Which changes did you make?

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

    Hi , very great job!

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

    Hello, as seen in the video, the path between the two selected points seems to be broken. It appears on the buildings, etc. It is not quite right, how to fix this

  • @Master-dh3xl
    @Master-dh3xl 2 года назад

    Well done sir. It helped me a lot.

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

    Hello , great job brother !
    I want ask you about how to make Markers from Network images ( i mean both svg or png pictures from my server with a URL).
    Any idea ?

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

    Wow really interesting video sir

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

    where have you been hiding yourself, I was searching a lot sources for this kinda video.
    you are so cool!

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

    Great one ...😉

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

    For Directions , Places and Polylines, don't we need Billing Enabled?

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

    Awesome! Where in the code you have polyline set to be under the street names, is there a setting for that in the code? I am asking after seeing any polyline i add ends up above street names, street signs, place names, etc.

  • @sonyblack2474
    @sonyblack2474 2 года назад +11

    Hi! Great video first of all! How could I show multiple users location via firestone by a marker in real time?

    • @MaxonFlutter
      @MaxonFlutter  2 года назад +8

      I can try to make a video about that in the future!

    • @tisanthanp.6597
      @tisanthanp.6597 2 года назад +2

      @@MaxonFlutter Best video, please make for multiple users with the route. Thank you bro

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

    The method 'LocationService' isn't defined for the type 'MapSampleState'.
    I'm getting this error for searching city

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

    You are the BEST

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

    Hello, thanks for the video. but does the application also show the current location?

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

    Great tutorial

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

    Does Google maps provide public transport stops data? And can I enable showing stops by default. To add ability to click them

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

    Hello! Is it possible to set a waypoint using this app to a device connected with bluetooth, ie an airtag?

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

    How do i add marker to the destination as well

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

    Perfect like every video that you have. Do you know how to getBounds ? I'm trying it but I can't do it. Thanks to share your knowledge.

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

    how can we create like when user install our app, app will automatically fetch device info and with that data we how can show that perticular device image.
    like assume i have two phone (1) Mi Note 10 pro (2) samsung s20
    i installed app on both device i used DeviceInfo plugin and its showing device model but how can we setup that our app show device image according to model.
    thanks

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

    very useful

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

    great video......

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

    the best very helpfull codethe best very helpfull

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

    Hi! Is there a way to only display a certain country?

  • @dhiroj_MK
    @dhiroj_MK 21 день назад

    Final string url which url you provide ,and how I get the url please reply

  • @progdev-do9lu
    @progdev-do9lu Год назад

    How to solve the CORS problem with the Distance Matrix API in Flutter web on the server side?

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

    Do we have to make seperate billing account for maps and gcc ??

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

    is that api url (at 14.14 )is constant for all project ?? please reply 'Max on Flutter' thankYou!

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

    Please make a video on marker movement between two places along polylines

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

      Okay, I will think about that for the future.

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

    How to Rotate Google map view with Compass movement mean if we Rotate or move the device map also be rotated.

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

    From where I got the url for polyline and. Direction in .. type in location service

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

    Hi, great tutorial apart from that how to track the route live from one place to another and thank you.

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

      Glad it was useful. I will make another tutorial to add the live route tracking.

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

      @@MaxonFlutter great thanks for this

  • @user-hw7du1yb7j
    @user-hw7du1yb7j 2 месяца назад

    Great tutorial. Exactly what i needed
    I am getting this error though.
    Exception has occurred.
    RangeError (RangeError (index): Invalid value: Valid value range is empty: 0)
    It occurs when I try to search for a different city that is Paris. I don't know why the code only works when I search Milan. Also when my Camera position animates, it moves to Nairobi city instead of Milan. Kindly assist on how I can manage this. Thank you.

  • @antoinewang2048
    @antoinewang2048 2 года назад +4

    Hi Max,
    Thanks for your tutorial it's really helpful.
    I've just got one problem : when I enter "Paris" in the bar of research for exemple, I have an error on the Console :
    [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: RangeError (index): Invalid value: Valid value range is empty: 0
    #0 List.[] (dart:core-patch/growable_array.dart:281:36)
    It may be caused by the code of the file location_service.dart, I don't know if you have an answer but I'll appreciate your help.
    Thanks

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

      Et moi, j'ai fait le même problem comme vous.

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

      You must have billing payment to use Place API

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

      It is happening because now google has made it compulsory to add credit card information to use their free service. So basically no JSON is being returned, hence the index 0 is empty as per the error. To fix it you must add credit card information.

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

    I add email.and submit from your link.but no rep.how i get source code.i go through your link and add my mail

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

    how do i add marker at the destination? thanks in advance

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

    брат, от души спасибо

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

    good job

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

    Thanks

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

    Is it possible to change the default language of google map in flutter?

  •  2 года назад

    When using places API I get an error and debugging I saw that I need to enable billing. is it now a paid API?

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

    helpful :)

  • @user-ur7fb6vc7c
    @user-ur7fb6vc7c 5 месяцев назад +1

    We would like to buy "Flutter Google Maps - Maps, Markers, Polylines, Places API & Directions API" source code, So, please advice Sir.

  • @wearecode9199
    @wearecode9199 Год назад +5

    Guys - > the places api requires billing ! the android and ios sdk doesnt. Good video anyways.

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

    Great video, any future plans for a completely full stack app?

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

      what's the language he uses please? and where the Link of Github

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

      What would you like to see in the full stack app?

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

      ​@@MaxonFlutter Hello and thanks for the video!! In my case, I would like to learn how to get the updates in real-time with the directions API, so what I mind is that when I have to turn right or left, I want to be notified.

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

      I think it would be cool to calculate the size of a selected poly line area on a map. Like if you were quoting a concrete driveway.

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

    Is there a way to display suggestions below the search text field as the user starts to type in the city name??

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

      Yeah of course, you should check my series about a Food Delivery App. In one episode, I show how to display the suggestions as you wish.

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

    Thank you so much

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

      You’re welcome! How are you using Google maps in your flutter apps?

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

      ​@@MaxonFlutter Yes! It's my first time working with Flutter, so your video was very very useful for me

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

    How to add autocomplete feature in this code bro ?

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

    Is the sdk for google map service free to use in production deployment?
    Does it require any type of subscription?

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

      Hi Majed! To use Google maps, you have to enable a billing account on Google cloud, and you’ll pay based on the usage.

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

    14:30
    Where did you get that url, you give no url in the comments, no copy/paste in the description, you give no clue as to where to get it, please give some more info on where to get that

  • @agiler99
    @agiler99 2 года назад +4

    I had an error running on android, it said that it didnt had the api key when i put it just as instructed in the video but reading the instrunctions on the pub.dev page it said that the metadata label had to go on the aplication label instead of the activity label and that solved for me. Hope this can help someone with the same error

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

      Thanks for explaining that here. I guess it might have changed since I released the video.

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

      Thanks, this resolve the issue of the map not appearing for me when i ran the code as per the instructions

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

    Hi
    Can you please tell me
    How can visible all info window on google map without tap
    Actually I need this
    Any possibility to show this

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

    Does this also run on the web?

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

    hi in the 32:12
    The operator '[]' isn't defined for the type 'Future'.
    Try defining the operator '[]'
    problem i having

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

    i have not output , only page only visible but map is not visible , pls solve my problem

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

    In 15.54 after typing milan and click search button there was an exception error (var place id = json [`candiate] [0]
    It tells valuwe range is empty invalid value its range error
    Also it not show the debug console printed pace id.
    When we typing milan code working and print in console.after click search button it gives range error higliting the 0 in get place id

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

      Same problem for me, did you fix it?
      Or is there someone who fixed it?

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

    Not sure if you'll see this, but whenever I restart the app after adding the API like you did at 15:50, it simple shuts down and says "Unable to connect to VM at *link* WebSocketChannelException: WebSocket connection failed. I've updated all of the dependencies and the SDK for googleMaps, but it still shuts down with the same error each time. Any idea how to fix this?

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

      In case anyone else runs into this issue, the simulator device that you use does affect the results, e.g., I was using an iPhone 8+ as a simulator but after swapping the the iPhone 13, it's no longer a problem.

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

    Awesome video!
    I'm a lil stuck, everything was going well until 4:50, my screen is just white at this point

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

    Hello! Great video! I have just one question: if I build a flutter app that uses GoogleMaps (just for showing markers at given locations, no other functionalities), how much will it cost to me the use use of the API when the userbase starts to grow? I googled it, but did not find anything conclusive! Thanks again!

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

      Ciao Francesco! It depends on the volume of usage of your apps.

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

      You can try to use this calculator to estimate: mapsplatform.google.com/pricing/

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

      For showing markers i guess no api is used, just the geolocator is used. So that is free of cost. For using the paid api, the first 5000 requests will be free every month. And then it will charge you for each service in addition.

    • @sumiabbasi2771
      @sumiabbasi2771 Месяц назад

      Is place api is paid?

    • @sumiabbasi2771
      @sumiabbasi2771 Месяц назад

      ​@@sonit9707 is place api is paid?

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

    can u make a tutorial on how to deal with listview builder when the data is of type "Future ". I dont know how to display this type of data using listview. Can u help plz.

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

      did yu fix this? can you please help

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

      @@nimmybastian3682 I got it fixed myself , but now I need to find in which project where I did it

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

    is that api link (at 14.14 )is constant?

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

      hey..Did you find the answer?? url is constant for all project??

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

    is it possible you share the url you used for getPlaceId ?

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

      You can get it on the official Google Maps docs: developers.google.com/maps/documentation/places/web-service/place-id

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

    Wow, very nice one
    i would like to learn more about google maps

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

      Stay tuned for more content about Google Maps!

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

      @@MaxonFlutter thank you so much, i get an error here "the provided api key is invalid", what should i do, thanks

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

      Did you create your own api key in Google cloud?

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

      @@MaxonFlutter yes. I did

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

      That’s strange! You’ll have to double check if you have added the right api key every where and if you have enabled the correct api in Google Cloud

  • @user-tn4sg5kf2c
    @user-tn4sg5kf2c Год назад

    Hi great tutorials!!! how to show user current location to other location from firebase , can you help me?

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

      Hi Tamirat, are you trying to retrieve coordinates from Firestore?

    • @user-tn4sg5kf2c
      @user-tn4sg5kf2c Год назад

      @@MaxonFlutter i want to connect current location with other location from firebase

    • @user-tn4sg5kf2c
      @user-tn4sg5kf2c Год назад

      @@MaxonFlutter yes,

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

    Performing hot restart...
    Syncing files to device sdk gphone x86...
    Restarted application in 2,978ms.
    W/Gralloc4( 8562): allocator 3.x is not supported
    E/FrameEvents( 8562): updateAcquireFence: Did not find frame.
    E/FrameEvents( 8562): updateAcquireFence: Did not find frame.

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

    can anyone share that api link

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

    Unhandled Exception: RangeError (index): Invalid value: Valid value range is empty: 0
    getting the following error when trying to getPlaceId()

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

      Same errore for me, did you fix it?

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

    Just to help someone maybe, if you are getting the error "Exception has occurred. _TypeError (type 'Null' is not a subtype of type 'Map' in type cast)" in the Map of the result of the place, just put "await" on the placeId varible (final placeId = await getPlaceId(input);)

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

    hello ,
    I am getting a white blank screen instead of my map
    What should I do ??

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

    error: The linked framework 'Pods_Runner.framework' is missing one or more
    architectures
    required by this target: x86_64. (in target 'Runner' from project 'Runner')

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

      Have you tried to run “flutter clean” and then “pod update”?

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

    i did exactly what you did but i get an error in the location_service " var placeId = json['candidates'][0]['place_id'] as String;"
    Exception has occurred.
    RangeError (RangeError (index): Invalid value: Valid value range is empty: 0)
    Could u pls help, thank in advance. :)

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

      Hey George, that’s strange, can you try to print the whole response and see what you get.

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

      @@MaxonFlutter thanks for answering, but not sure how to do that! 😅

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

      @@MsGeorge99999 before saving the variable placeId, just add print(json[“candidates”])

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

      @@MaxonFlutter same problem for me. I add now print(json[“candidates”]) and the result is: [ ]
      I search also on web but I find nothing

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

    can anyone share the github repo link

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

    Does not display man on page what to do

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

    Hi Nice tutorial. Please can you add and example of geofencing to detect user in and out of geofenced area?

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

      I will try to make a video about that in the future.

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

    hey I'm new to flutter, will this work on a web app?

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

      Hi there, there are some tweaks to do to make it available on web as well. Please check the official docs as they explain these changes: pub.dev/packages/google_maps_flutter

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

    is it possible on flutter web

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

    can you please send the url ?( at 14:11)Thanks:)

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

      Hi Faadil, the repository is public on my Github. You can copy the URL from there. To get the link, subscribe to my newsletter, link in the video description.

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

    please can we have the source code

  • @anasraees5980
    @anasraees5980 14 дней назад

    Can we show street view in flutter apps?

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

    how to get github of this project?

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

    Hi , the place API requires billing and I can't do that billing cz I don't have a credit card 😩 , so if there is any solution or suggestion I can do to show my customer how the app should work , I'm very need this , please help me

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

      Hey Mohammed, unfortunately I think that there isn’t a workaround if you can’t enable billing 😣

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

      @@MaxonFlutter thanks max for your response , i really appreciate that , keep up the good work ✊❤️

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

    Hello, in my case it don't recognizes the "convert" and gives error, can you help me? @Max on Flutter heloooooo

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

      this error I had and solved was really a noob kinda error and in case anyone else experiences the same; I will explain, on import convert, you gotta add import 'dart: convert' as convert; this guys.

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

      Hi Emre, glad you found the solution and thanks for sharing it here

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

    I am getting RangeError (RangeError (index): Invalid value: Valid value range is empty: 0) at this line var placeId = json['candidates'][0]['place_id'] as String; . I am unable to fix this error please help. Followed each and every line of your code still getting the error. Waiting for your reply eagerly !!!

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

      It seems you didn't get a response from the Google Maps API.

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

      I m also beginner. so i got this error too. then I remove application restriction and api restriction in my api key. it worked for me. idk may be this method help you.

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

      @@toonkinga284 what you mean by removeing application resttiction
      It means you remove credentials (place api ,directions api ,android sdk))
      Like that?

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

      @@toonkinga284 what are application restrictions ? Some thing in the code?

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

      api key restrictions

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

    it was showing blank screen when i run the main.dart why i did everything the same

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

      Not sure, you might have missed some steps.

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

      @@MaxonFlutter nope i did everything the same. Checked it again and again doesn't work. I'm using vscode and android avd

    • @Nick-yn5tc
      @Nick-yn5tc 2 года назад +1

      @@thexplode7 In androidManifest the metadata steps needs to be under application not under activity, its a common mistake that you possibly did

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

    hi can we take the source code ?