Get Nearby Location In Flutter Using GeoLocator Custom Code | FlutterFlow Custom Action

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
My name is Shreyansh and how are you guys? I welcome you all once again and in today's video, we will create this custom action, the function that will be there, the action that will be there, let me tell you a little bit about it. Like you guys make a driver up, meaning you make one where you have the location of how many people in your nerist, like you are making a Rapido type up, what happens in Rapido, where does it book? You can search the location of how many drivers are there within the radius of 100m 200m, ok , that will be very helpful to you, all the things that are being liked by Rail in your location are visible, ok. Let's create a little function of this type, I will do custom code today , Max will keep playing, why am I writing that code and what is the meaning of that thing, okay, let's start the video. Let's start the video . Before joining, there is always a request to please subscribe the channel and I have information which I have to give to you people. Currently, I come live daily from 8:00 in the evening, so please as many people as possible should come to Sarita because I do not know anything. I am happy to tell you something new and if you have any question, you can ask it to me. Okay, if any issue comes in this video or in any old video, then you can ask me openly. If we don't understand at this point here, then I will explain it to you clearly. Okay, let's start the video. Now we have to do the custom code, so I will come to my editor. Open, so I will write here. First the future which you will get here is the nearest location . Now when you will get this thing here, we do not have to keep double , okay, that means this location can be done by the current user, either this location will be your current location, okay. Let's make it a landline, it doesn't have to be listed because the location has to be done, it will be fine [Music] [Music] [Music] MP List OK, we have to get the location which was given by the user, we have to take all the locations here. People will create people here but we will give lateline in it, we will fix the distance here [music] which you can find on the website, I have gone to the website earlier, also see that, people come to late's website, so to come from this, we will reduce one. There I open it in the browser, I have to write my geo locator here, I will click on this package, after clicking, I will come here in the installation section, we will install it, after that I will do this thing, I will copy this thing there. After this, I paste here the dot latitude, latitude will come down right after that, now I type, press done, one minute, I remove it from here, it will be necessary here, so I have to write here, now I have taken the longitude, meaning now here . Our bracket will be banded, I do this band from here, once again I explain to you guys what I have written here, what have I done in it, see what happened in it that this which is located which is our package. Inside that, we have passed the latitude and longitude of the current user, it is fine, after that, from another one, we have passed the latitude and longitude of the other user, now this was the value, all four values ​​of these two are fine in distance, now here we have a Create function of else and write here [Music] [Music] This one of ours is done [Music] I want to comment here and write you guys near by user location list ok means now it will update the list in that location [Music] [Music ] ] If you put nearby location in it then you have to write return return near by location [Music] [Music] Here the test is done, okay, I will format it a little, it is not given properly, now it is done, I have run it in my web builder. I am the builder, so he has to do it, he doesn't run, I open it at the right time, fix it [Music] When he comes here, he will reduce it comfortably, if possible [Music] [Music] There will be no distance, there will be distance between. Okay [Music] If the shoes are gone, no problem, I'll do it from here, okay This is done, this run is done, we are ready, there is no issue in this, let us come here, now we create the page which we want to create action, we call it mother fox, there first of all we had created the database, so I have already created it. The database was kept here , I did what , the user will enter his own location, okay [music] I want to keep the container, a container is not my own, I put the test here in the middle and it is ours and it is ready [music] means the meaning of the output. Which is our action return, you can either reduce it by one, take it from the user, okay, here I create the radius, this will remain, not the latitude, this will remain ours, we will have to update it in double, we have to take the radius, we have just created the database. So it is not already kept, that means we do not have any database, here for this we will reduce it, we create an action only when the page is loaded, okay let's come here, okay this action is already created, I will delete it. I remove it, then I create an action, let's collect here in front of you, whose collection [music] I come to, now where do we have to take the radius from, we have got what was our return variable A, confirm from here [ Music] Let's output it OK, now the variable is done, now let's come here to generate the list, generate the list from the action output with the variable named output, confirm what was returning as our A, here we do near by location, OK. If I do it from and then I will come here, I will add an action, I will add page state and put, I will set the value, where will we put this value from, we will confirm from the output that we were getting from here [music] and we will [ Music] Let's come to the state here, if it is loaded, if it becomes true then this show will be done, I will do the project from OK and now I will run it here in text mode, for this to run and before running, I am going to see the thing. Whether we have any content or not, if there is no content in it [Music] [Music] [Music] And take the location, I am taking the location of this address and here I put it, okay nearby, I take the story. I am like mother, I am late in location, let's copy this thing, this location is done [Music] [Music] Both will show, the third will not show, okay now we have to confirm whether this thing is correct or not, for this we can reduce it. [Music] We are adding a map to test. Let's create a page from here and take our map from Google Map. Actually this request is not supported. No problem. Here I create the page parameters. Come in the page parameters. Here and I move it a little to the side, okay, here we come to the page parameters, we add parameters, here we come, we confirm the number from here [music] here I come down the button, here I write it, check on map Here I come here and I create in this I come to the first page a navigation map test will pass Latitude Longitude This will give us this from our page state Here is the output one let's confirm Okay now it's on the page Anyway, if you want to check this thing, then I will do one less, not me, let's check this first, then I will check you one by one, okay, you guys will also get confirmed [Music] [Music] So this is some other location given here 6 of us on this A Jain [Music] [Music] [Music] You have got one from here and one from here I am your current location here [Music] Here I give the current location. Current location will pass the current location. Now we reload it once again. I double check it in you. I load it from here . Come to the register and click on the button. Check that your location was there. Your current location was this, okay, now I will change the location a little, I can update you from here, our current location would have been something else, like mother, here I calculate the distance, once I do the distance, okay [Music] [ music] [Music] [Music] [Music] I paste this, then I copy this, I paste this here, I copy this, I paste this, I add another item, I copy this, I copy this in the direction front. And here I paste it, okay less and let's do this, I take this, now I will copy this, paste it from here to here, now see what you see, you will stay here [Music] [Music] [Music ] ] If you take it, I will do it, how much is it, it is 249 m here, now I am late in the area of ​​300 m, I am late by 300 m, I will update the document, then come back, I will click on the button from here, do not update it. If you come in this then we have this much location ahead, now I will check here, I can make my location up to this point [music] If you want to create a rider or create a delivery up, then you can do it like this, this is the real thing, that's all See you in today's live video, so join the live session as much as possible and I will give you this code on the website , you will get it at a very cheap price of ₹ 20.
Info
Channel: No Code Academy
Views: 2,954
Rating: undefined out of 5
Keywords: get location flutter, flutter get user current location and show it on map, how to get location permission in flutter, how to get current location latitude and longitude in flutter, flutter get location in background, how to get device location in flutter, flutter get location name, flutterflow get location, flutter get user current location adn show it on map, flutter get user current location and sohw it on map, flutter get user current location adn sohw it on map
Id: rEmuhKSd47o
Channel Id: undefined
Length: 28min 33sec (1713 seconds)
Published: Sun Sep 24 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.