Flutter Multiple Dynamic Dependent Dropdown List Using JSON REST API

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] Paula little Dennis Pollock wrongfully tax and this week I'm going to show you how to make a time with the cannon chopped on base using JSON realistic yet there is one example I'm going to show you you see there is two drop-down list on the straight wants to do so you can unselect the city under history select the state I'm going to select a state and then you see the city is an apple LA and now you can select in steel so it made the cities depend on state for in this in this tutorial we will you we are using their STP I disconnect from the interact so first of all they see is this is building from where we give you look at the state and visit the thing from where we will get that cities like state ID so let's go to the court e maybe suit videos will need only one away it's not the HTTP this is one dependency you will install in your project and then you will create will drop down list if we don't know how to create a drop down list you can download this code and go check the code there's one inside one container I put one for insert ago there is expand expand then dropped on I don't have length because each and every I dropped on his one underline inductor so to hide I'll underline I'm using his feature and then drop down button there's two variables one is the state list and one is the my state am i straight the my state then they will come from Bavaria which we select inside the items but if my state is that now before it's show that hinted which is select state and when you say like the we select some value from the child in select a child will you from items it with straw inside per mile state variable and display inside the birth belly so it mean until you all II unless you don't select all in a Bailey from the list all dropped off it will shoulder select state will select the build it will show my state level with Troy straightaway all changeable Cholan straight failure and I'm calling this method they gonna fall off and then there is another in fact on this beast self which I'm using falsity this one's for the state and this one's positive with listen using the same method senator faith and let's go through the nuclear problems and if you're always posted here I'm using two variables not variable one is the best variable enhance their strength we label and less variable Alex Trebek Jason dynamic data pins in McCormick and the staked all the use only the still used for Chris Traeger state ie so this is the strain URL by storing the your eminence of the stratum for oil and then i'm using the future methyl something else and then I'm using the HTTP which are already installed with my pops factor the month and already are in fourth here is is typically so I think I can use it shop luggage to delete a post request and I'm putting the URL and then came papers and using the content type beautification the content types you can see from here headers the content types you can put this all right back on the program I'm using them or appoint URL encoded and then in for the I am passing one parameters which say tak you see and parameter here to get listed only one kilometer is they will sleep late with and then with Villopoto return a response in response am decoding you and Olli ninja sell off all decoding and encoding them using the remote dot Park is coming with each elevator and we don't need to install any third-party dependency for this and I'm storing the ten Delta and then instead list and stand straight-laced I'm only showing the instances of estate you see only the state on the state list only the state yourself my values Armstrong is like a strip Leslie and Ben fair in items I'm using the same status will you hope I'm using the consumer just in case mr. Easter's coming now and then I'm using from that one shell and then I'm getting tight on one by one I will dynamically so inch always return displaying the name you see these names these names are the child's child or an item so when I select it will become available so the selection Isabella you see I am will be written in the ID by D so the value can return on change on changes it's taking only value and really restoring inside of my state and I was trying the only value inside the mine still I am friend in her my state which to spend here and then and then there is another because it's the city same thing senator said to Billy about when his phone is the truest and one is a my City my city will scold her fellow will say D and my second official name or a lot of information well strain your air is here and then the future method and Method Man the functional and then the sanctum escape and then I stupidly forced to first and I'm customer URL Harold's Eagle Center content type and then in body I am passing three parameters one is API key and one is totally wasted on table form from this straight IP which we are passing to the state and P storing getting from the alte my deal storing in their waves and then from the waves and we're storing inside the steak my steak and then we are calling the my steak method for function and a failure here you just because after you select the spine state so try selecting a Penn State will pop with an i-strip variable and then also if her father gets a beautiful isn't function and Waylon gets to dysfunction with the the same thing that it on the response and his phone's way of recording fill yourself and Sterling himself at which are variable and then from the talk they're giving the cities and stencils and storing inside the city girls and sitarist we are using the same map function and then enjoy your joining two splines and nights and returning the girly as our key and storing insider by city and then filter man city so here is the trick so first of all in in each state he'll call the function which kitten per state left lane inside when you get the state then select the state to grow change the way real people change with Lulu and store in circa Meister whilst going inside on instead of FA which will also called the function rich cities so the gates it is it will pass the parameters we will pass for himself a state the Meister freedom so you see if we see the appears in value in night air to get the states the only posture EKG to get the city's be past the guilty on state ID the state ID is coming from here you slip is I think his idea we are fussing here and to get that to get for sitting accordingly so now they've paid an educational event bank guys so you can see but cities you can unselect first a hole in its take on in its state it's already escaped because you do select the states or select the state API is already called so you can see all the states and I'm going to select that in I am and then and then you will see the Penang anger and cities are now and it variable same ethnicity is where is ID its electric one I'll be bald and then still maintain is the idea of city hope your thought this tutorial and if you want the code you can find the code inside the description and you will find this link inside of the description you can call me use it for your arm and thanks for watching don't forget to subscribe to my channel
Info
Channel: KDTechs
Views: 58,416
Rating: undefined out of 5
Keywords: Mobile, Flutter stateless, Flutter stateful, Flutter widgets, Flutter tutorial, Flutter dart camera, Flutter dart course, Flutter dart programming, Flutter dart project, Flutter dart android studio, Flutter dart tutorial, Flutter dart, Dart, Android, Ios, Rest api, Http, Flutter rest api example, Flutter rest api authenticatio, Flutter rest api crud, Flutter rest api tutorial, Flutter dropdown from api, Flutter dropdown b
Id: 4AUuhhSakro
Channel Id: undefined
Length: 10min 12sec (612 seconds)
Published: Sat Apr 25 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.