Support : paypal.me/ripp... In this video I have discuused about GetConnect and StateMixin. API link ============ randomuser.me/... Github Link of Project ======================= github.com/Rip... #GetX #RipplesCode #GetConnect
Your explanation is very complete, its the way i like to be taught, with a LOT of explanation. You Sr have your like and please keep this coming specially getX ones
At the model dart file generated, you must manually change the "Class ?" into "Info ?" or "Name ?" or "Dob ?" according to the classes name created by get_cli 1.6.0 (see the below part of the model dart file). Somehow the get generate model can create the correct Info class, Name class, Dob class etc but can not MAP them correctly into their class definition name at the top part of the model dart file (it just simply write it as "Class ?" which mean we must look at the correct corresponding "class name" in the bottom part of the model dart file). Example: Change "manually by yourselves" the: Class? info Class? login; Class? dob; Class? registered; into Info? info Login? login; Dob? dob; Dob? registered; then it will work. Notice that the dob and registered json sample file have exactly the same data structure so the get_cli only make 1 new class called "Dob class" so you have to use Dob for "dob" variable and also for "registered" variable (the get_cli is smart enough not making new "Registered class" as it detect it have the same data structure as the "Dob class" it already made inside the model dart file). Also, add "!" (the null check) in some part of the model dart file created by get_cli (as get_cli somehow maybe not fully comply yet with the "null safety" feature of the new flutter version. Example: at: results.add(Results.fromJson(v)); change it into results!.add(Results.fromJson(v)); After doing the two things above then the model dart file will no longer produce errors.
Why did we create user_model.dart as it was not used anywhere as we directly used the UserProvider ? (or was there some under the hood things done by GetX to use that model which I did not get ) ?
sir please use model also with this use create but not use mode you directly call the properties from response. so please make it also we can understand. and up to this you r really very important. regard getx and flutter to all the viewers thank you.
Can you please provide a link i also trying to add loading idicator but cant I make true is loading in provider and try to add it to the home view class under body.obx and also above return card but not working
@@zaidbashir2001 At the model dart file generated, you must manually change the "Class ?" into "Info ?" or "Name ?" or "Dob ?" according to the classes name created by get_cli 1.6.0 (see the below part of the model dart file). Somehow the get generate model can create the correct Info class, Name class, Dob class etc but can not MAP them correctly into their class definition name at the top part of the model dart file (it just simply write it as "Class ?" which mean we must look at the correct corresponding "class name" in the bottom part of the model dart file). Example: Change "manually by yourselves" the: Class? info Class? login; Class? dob; Class? registered; into Info? info Login? login; Dob? dob; Dob? registered; then it will work. Notice that the dob and registered json sample file have exactly the same data structure so the get_cli only make 1 new class called "Dob class" so you have to use Dob for "dob" variable and also for "registered" variable (the get_cli is smart enough not making new "Registered class" as it detect it have the same data structure as the "Dob class" it already made inside the model dart file). Also, add "!" (the null check) in some part of the model dart file created by get_cli (as get_cli somehow maybe not fully comply yet with the "null safety" feature of the new flutter version. Example: at: results.add(Results.fromJson(v)); change it into results!.add(Results.fromJson(v)); After doing the two things above then the model dart file will no longer produce errors.
In GetX provider we write the code to get the data from server...from controller we call the function declared in provider and use that data in our UI.
Do you also face problems when creating a model dart file using the "get generate model with..." from the command line? (that is the model dart file created is showing error here and there, this is using get_cli 1.6.0 and flutter 2.5.1)
This is a very informative video, I loved it. I also practiced it. But I have a problem. What I have to do if I want to call another request and it will change the view immediately which means it will do the same thing. I tried so many ways but can't implement it. Could you please give me some instructions? I really need your instruction please. Thank you
@@ripplescode Thank you for replaying me. This is my view Architecture - Scaffold |__body |__Column |__[ List of Categories Button ] |__[ List of Products ] N.B: parent widget controller.obx() Functionality - # At the beginning it will show some random products in the [List of products] view section. # When clicking a category buttoon from the list of categories button, it must show that related protects in [List of products] view section. It is easy without using StateMixin but iI want to do it with StateMixin because I think It follows DRY [Do not repeat yourself]. But the problem is when I click the "Categories Button" it does not reflect the UI. But in the backend, it actually fetches the data from the database. I am really sorry for the long explanation hopefully it makes sense to you. If it's not clear to you, could I have your email for more explanation if you want to. Really Getx makes my life so easy. Thank you again.
Can you share the dummy code to ripplescode@gmail.com...instead of database just load the data from local JSON file and send it to me....in my spare time, I will surely check.
@@ripplescode I have written like 3 comments before and it is gone... Well, I am sorry if maybe there is some misunderstanding between us. I just try to help the community here to find a fix for the tutorial that might not work with the newer flutter version. 1 thing I want to ask is, did you have to edit manually the model dart file generated by the get generate model when making this tutorial video? or not? It seems the new get_cli and new flutter version if used with the same json data file will not produce the same result as in your video Sir (it will need some "manual editing" again so the model dart file result does not generate errors, and it is not just because of the null safety, it is because the get_cli get generate model can not map correctly the "class name")