Nice video, learnt a lot from your channel. Can you please make a tutorial on how to write and read video files with firebase, since there not enough tutorials online to learn to handle videos? And videos are an essential feature of most apps.
someone have the same proble than me? i cant make the condition : "_destination != null" it says that MArker cant be nulleable and always will be true. help please! nice tutorial
Hey I have tried the same code from the video but the Polylines don't work I don't know why I've also tried taking the code from your repo also switched my api key with yours but still the poly lines don't show up I can't understand why can you please help me?
Yes I got the same error. this is flutter null safety error. Try using // @dart=2.9 at the start of your main.dart file. it will solve null safety error.
hello nice video, i see that few seconds after 3:25 your google maps seems "buggy" i have the same issue with road getting "biggers" and "blurry", did you find and fix or is it normal while using an emulator maybe ?
Hello, Can you help me? is giving this error. Because MAPGO depends on google_maps_flutter >=2.0.0-nullsafety which requires SDK version >=2.12.0-0 =2.0.0-nullsafety which requires SDK version >=2.12.0-0
Working on this on Flutter Web, can’t get to show the Polylines on web, is working in iOS and Android but not web. Gets the info correctly but doesn’t show Polylines
Facing same problem. I suggest use MapBox direction api, to draw a route we need the set of points to draw route, MapBox give us for free, also give duration and distance. Google maps direction api JSON returned is different from MapBox direction api but they have commun things.
I am having issues because GoogleMapController and Marker objects cannot be null. I was able to get around this issue for the GoogleMapController by adding the late tag in front of the declaration, but I cannot find a workaround for checking if the Markers are null. I get a warning that says they cannot be null so the comparison is always true when checking if != null. Anyone know a fix?
I fixed this by initializing the Markers to have position = LatLng(0.0,0.0) which is very far outside of the intended use area of the app I am building, and compare Marker.position to LatLng(0.0,0.0) instead of checking if Marker == null
"(projectname) wont run without google play services , which are not supported by your device", i enabled the maps sdk for android api though, any help?
This package doesn't use the google maps API it's using the google Android SDK and google IOS SDK. The reason I'm calling out this difference is because maps api is unlimited, android sdk and ios sdk have limits to how many requests (currently $200 worth per month at the time I'm writing this) that you can have on your key.
bro its really good video but i have some problems in my code, whenever i try to initialize MARKER it give me an error because of null safety, but it is not giving this error to you.
Yes I got the same error. this is flutter null safety error. Try using // @dart=2.9 at the start of your main.dart file. it will solve null safety error.
hello i have this error A value of type 'Null' can't be assigned to a variable of type 'Marker'. Try changing the type of the variable, or casting the right-hand type to 'Marker' you helpme please
Hi, thanks for this great tutorial. Is it possible to place the map in, for example, a container that uses just 1/3 of the screen? That way I could use the rest of the screen to place some other information :)
my app only shows the total distance, duration, and polyline on the initial build. When I set a new origin and destination, it can't set the destination, which the DirectionsRepository.getDirection ==> reponse.statuscode failed. It only works when I wipe data or rebuild the virtual device again. It may be a memory leak. Wonder you might have the solution to this problem. Overall, I highly appreciate your work and thanks for providing such quality work.
@@AnkitMishra-th6gb Hello are refering to directions api bc theres no route api in cloud console. Please can assist me im also not to draw the polyline eventhough i get and decode the polyline string. Also i have a billing account and directions api enabled
Hello sir, Thanks you so for such a nice video. It was very helpful for me. I have one request. Could you please create a video on How to search Hotels restaurant coffee shops or any Point of interest along the route which we drawn on the map. Please if you create that video it will be very helpful for many people. There is not a single video available on RUclips for request query. Thank you again.👍
thanks for this great tutorial however it is a shame that we still can not use widgets, the integral part of Flutter, as markers and we are limited to some rasterized images as markers. I will not use Google Maps until they support this. I don't want my app's map to look like it is from 2012:/
Honestly bruh I'm only 40 seconds in and I'm already a like smasher & subscriber. Thanks for all you do!
dang bro, you go super god mode right now.
Amazing tutorial for ivorian young man who learn fultter.
The best one yet, Thank you so much!
Don't forget to put [bounds][northeast] if bounds are null in the get Directions
I want to know how you solved this problem!
can I get some code or comments?
If there was love button i would also press it.....thanks bruh you inspire alot
Wow, this was such a complete and helpful tutorial, everything was well explained, thank you so much! 💯
The best maps tutorial ever :)
Thank You Marcusng for this one...This is Super-Helpful
Thanks, it helped me in the project))
Hi Marcus, Can you please update the Github code to null safety version?
Did u find it ?
amazing video mannn!!
5:08
_destination = null;
Cannot be performed as the error comes
'A value of type Null cannot be assigned to a variable of type Marker'
Hey mate, how did you fix that error? I am facing it too
@@gideonboagontshonyane5473 Try _destination = null as Marker;
4:05 im doing realtime tracking on users that are connected to my app , the probleme is that i can t add the origin and destination their
Very good video! Helped me a lot
I love it!
Man!! You saved my life❤️
Thankyou for an amazing tutorial!
Nice video, learnt a lot from your channel. Can you please make a tutorial on how to write and read video files with firebase, since there not enough tutorials online to learn to handle videos? And videos are an essential feature of most apps.
This is awesome 🙌🙌
Hi, great tutorial apart from that how to track the route live from one place to another and thank you.
Awesome tutorial
Thank you very much !
Really Thanks alot sir ...
someone have the same proble than me? i cant make the condition : "_destination != null" it says that MArker cant be nulleable and always will be true. help please! nice tutorial
Great video !
How do you make that beautiful animation at the beginning??
very helpful thank you
How do you do the step 'open Xcode' in Android Studio in windows? Thanks!
How can you hide Google cloud apiKey if publishing code on github? Or how can i restrict apiKey to be used by only flutter app(ios android web)
Hi Marcus, is it possible to make this update to null safety?
Hey I have tried the same code from the video but the Polylines don't work I don't know why I've also tried taking the code from your repo also switched my api key with yours but still the poly lines don't show up I can't understand why can you please help me?
same issue here any solution you got?
Thank you for real man ♥
Thank you very much. but I don't know how to use it applying null safety. Can you teach me the solution?
Yes I got the same error. this is flutter null safety error. Try using
// @dart=2.9
at the start of your main.dart file. it will solve null safety error.
thank you Marcus for your video
hey Marcus, great video as usual. But how about some animations man? A whole video on some top level, cool looking animations?
Hi Marcus, nice tutorial. Can you please solve this error?
{
"error_message" : "Invalid request. Missing the 'destination' parameter.",
"routes" : [],
"status" : "INVALID_REQUEST"
}
same error
Could you please make tutorial on state management in flutter..??
Love from India
Hi Sir, all went good but at last routes returning null and polyline doesn't show up, kindly help what should I do ???
I am buying your course!!!
great video as always marcy (pronounced mar-quee)
writing documentation for your comment hahah
thank you
Can you make a video explaining about ARCore
Augmented Faces by flutter
Thanks you. For this video
3:56 what is that extension that let us view the error and warning directly next to it, in vscode?
Can you tell me?
Error Lens
Thanks for tutorial please this learning with open map street 🙏
I love ur vibe smashed d like button after 30seconds
hello nice video, i see that few seconds after 3:25 your google maps seems "buggy" i have the same issue with road getting "biggers" and "blurry", did you find and fix or is it normal while using an emulator maybe ?
Null safety is making this hell. I can't display my polyline because there's a million issues with nulls :/
routes not created when we add one destination and origin polyine above 0 , 0 is showing why?
You are awesome!
Hope you do some courses on Udemy!
True
He already does courses on Udemy
@@simoneseo5216 I see!
I found three courses for him.... Amazing 😍
Can you add multiple destination polyline points?
Hello,
Can you help me? is giving this error.
Because MAPGO depends on google_maps_flutter >=2.0.0-nullsafety which requires SDK version >=2.12.0-0 =2.0.0-nullsafety which requires SDK version >=2.12.0-0
Change your '"SDK version >=2.12.0-0 =2.11.0-0
Working on this on Flutter Web, can’t get to show the Polylines on web, is working in iOS and Android but not web. Gets the info correctly but doesn’t show Polylines
Great! How to add search form input? Any documentation?
Hello, is there any way to set indications to the Exactly same Route Polylines? Like Navigation SDK google, but without the SDK
Dope again Marcus how do u make ur beginning video animations
Thanks for this.
Is it possible to add makers on the map and make them connected using this api, what needs to be changed?
help, I'm definitely starting to get the hang of it. Just thought I'd share.
Hello, Marcus thank you for the tutorial, I have tried your source code, and it's not showing the polyline and the distance and the duration?
Facing same problem. I suggest use MapBox direction api, to draw a route we need the set of points to draw route, MapBox give us for free, also give duration and distance. Google maps direction api JSON returned is different from MapBox direction api but they have commun things.
@@MrAvelino2010 can you send the code?
I too had the same issue
@@MrAvelino2010 brother can you send the changed source code?
@sameh ali did you find any solution?
I am having issues because GoogleMapController and Marker objects cannot be null. I was able to get around this issue for the GoogleMapController by adding the late tag in front of the declaration, but I cannot find a workaround for checking if the Markers are null. I get a warning that says they cannot be null so the comparison is always true when checking if != null. Anyone know a fix?
I fixed this by initializing the Markers to have position = LatLng(0.0,0.0) which is very far outside of the intended use area of the app I am building, and compare Marker.position to LatLng(0.0,0.0) instead of checking if Marker == null
i am not able to make .env.dart file in lib and polyline and time and distance is also not showing can you please help
what is the route and polyline based on? is it the shortest route? or what logic is the polyline is drawn off of
Is there any way we can get the current device latitude and longitude?
Hi Marcus.. you know in Google map.. I can 'reorder' each location. How do or where do I go and get that tutorial? Thanks.
You didnt secure your keys in the GCP with SHA1 and Bundle ID
Cool Video
Hi, is there a way to only diplay one certain country and not show all the others?
Without pricing setup we can't hit direction API?
Thanks for the amazing tutorial Marcus, I tried this code and it worked well, but I want to know how can we add more destinations.
Your polylines worked? am trying but my polylines are not working
@@muhammadbasitamin5829 What errors are you getting?
@@BilalAli-ug5tw I too had the same issue. When I checked google cloud console , all requests for directions API showed error with an error code 4xx,
@@BilalAli-ug5tw sir can you share your code in github and appreciate it if you can answer these guys' questions
"(projectname) wont run without google play services , which are not supported by your device", i enabled the maps sdk for android api though, any help?
I have a Question Please, I want to use google Maps API to get the user's current Speed, is it possible
Thanks
This package doesn't use the google maps API it's using the google Android SDK and google IOS SDK.
The reason I'm calling out this difference is because maps api is unlimited, android sdk and ios sdk have limits to how many requests (currently $200 worth per month at the time I'm writing this) that you can have on your key.
is it necessary to add billing account to use API key ?
Nice perfect !!!
Thx bro (:
Thank you, but why the DirectionReposietry always returns with null, even I have enabled all needed service!
Never mind, i printed the response and I must enable the billing :D
bro its really good video but i have some problems in my code,
whenever i try to initialize MARKER it give me an error because of null safety, but it is not giving this error to you.
Yes I got the same error. this is flutter null safety error. Try using
// @dart=2.9
at the start of your main.dart file. it will solve null safety error.
Is it possible to add polylines if I have multiple markers and not just 2?
hello i have this error A value of type 'Null' can't be assigned to a variable of type 'Marker'.
Try changing the type of the variable, or casting the right-hand type to 'Marker' you helpme please
Is there a way to make the choices permanent unless reset by a button on the screen?
Great, which of your course covers this topic of Integrating Google Maps
did you have to select a billingplan?
@@henkiespenkie4414 same doubt
When is the push notification coming?
awesomeee!
you saved me
Fantastic
Hi Sir, so do you know how much this would cost monthly ?
the tutotial is awsm, but why isn't the polyline showing up?!
Check your api
Hi, thanks for this great tutorial.
Is it possible to place the map in, for example, a container that uses just 1/3 of the screen?
That way I could use the rest of the screen to place some other information :)
wrap the Google Map in a container o sizebox widget and set de height
Is there a way to see a live navigation of any object on maps? Let's say for example a car approaching me miles away?
did you find that?
Hii bro liked all your video, I want to ask is there any charges to enable direction api of google
Just out of curiosity, which program did you use to make this presentation on your cell phone with the application
this is emulator, not mobile
For anyone whose route is not displaying, make sure to link a billing account to your Google Cloud project.
Really?? thats the problem??
hei, i have problem setstate is not defined, can i get help of this error ?
my app only shows the total distance, duration, and polyline on the initial build. When I set a new origin and destination, it can't set the destination, which the DirectionsRepository.getDirection ==> reponse.statuscode failed. It only works when I wipe data or rebuild the virtual device again. It may be a memory leak. Wonder you might have the solution to this problem. Overall, I highly appreciate your work and thanks for providing such quality work.
for me it not showing polylines
for me polyline are not showing
enable the google route api from your google account, and also add the billing info their.
@@AnkitMishra-th6gb Hello are refering to directions api bc theres no route api in cloud console. Please can assist me im also not to draw the polyline eventhough i get and decode the polyline string. Also i have a billing account and directions api enabled
Hello sir,
Thanks you so for such a nice video. It was very helpful for me.
I have one request. Could you please create a video on How to search Hotels restaurant coffee shops or any Point of interest along the route which we drawn on the map.
Please if you create that video it will be very helpful for many people. There is not a single video available on RUclips for request query.
Thank you again.👍
When I exceed 40,000 requests, it will not automatically deduct money from me, right?
Great...
how to get traffic infos with direction API ?
thanks for this great tutorial however it is a shame that we still can not use widgets, the integral part of Flutter, as markers and we are limited to some rasterized images as markers. I will not use Google Maps until they support this. I don't want my app's map to look like it is from 2012:/
hi, anyone know how to integrate waypoints ?, ım having a troble while trying it