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.
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.
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 ) ?
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
@Zaid Bashir 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")
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
Hey Thanks buddy.
Thanku so much sir , I have implemented getx in my projects by learning from your videos
Really good tutorial. One thing though, can you use a less distracting theme for your computer next time please.?
Superb Explain 😎💻📲🔥
an essential thing in a simple way thanks omer
It's not omer it's Amar
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.
So useful, thanks for this great playlist!
After clone the project it says my app is not defind that error occurs in test folder under widget test dart
Im.using flutter 2.51
Also in user models .dart
There is a msg says
List is deprecated and shouldnt use. How to fix this
Resolved it
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.
Ok
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 ) ?
what type of pattern is it ? can we relate it wih mvvm?
What is the use of stateMixin🤔
Thanks! Instead of List, Can you use List ?
Go through entire playlist...I have used List as well.
Wonder full explanation. Please make a video for CRUD operation using StateMixin and GetConnect.
Ok
can modify the loading indicator??
example i want to modify loading indicator become shimmer
In the view you can use onLoading parameter to use your custom loading indicator
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
How to use this code with multiple URL api ?
Nice video!
A tutorial about how to use bindings would be great
have you used the model of the JSON? Connecting getconnect to model
Hi there, is it possible to use Chapter 21's approach to handle this API ?
how to send post request with GetConnect suppose like signup/register, please answer. I'm in bit of confusion.
Please refer my todo app videos in GetX playlist
❤❤❤❤❤
Sir what is purpose of making user_model.dart ?
my app will work without it?
Sir Please explain
I have not used the model in the example...just discussed how to create that...but if you want to use you can
@@ripplescode Sir Thank You for reply.
Now i understand.
What about a custom class rather than list dynamic
I waiting this toturial bro. Make with mvvm architecture. Share also the source if you can. Thanks you
Check description
@@ripplescode thanks you 👍
Wonderful, really wonderful
@Zaid Bashir 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.
Nice content. Terrible android studio theme lol 😂 😂
i am geting this error type string is not a subtype of type int of index
nvm. i fixed it
awesome
Can You please make a example how can i return List because i was trying but facing issues
Why get cli tool generating model class without null safety ?? I have to use freeze package 🙏
Yes.. there is some problem
@@ripplescode can we generate freezed model class with getx cli
Never tried...will give a try.
@@ripplescode thanks
What if I don't want to use the default progress bar
body: controller.obx(
(state)=>Text(state.yourField),
onLoading: CustomLoadingIndicator(),
onEmpty: Text('No data found'),
onError: (error)=>Text(error),
),
);
you saved my life!!!
Sir
We creat api call in controller so why we need to create getx provider
please reply me I am confused....
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.
i try to parse news api with getx like your video , i make all steps as the video but i got this error ( xml http request error )
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)
I think you are getting errors because of null safety...
Getconnect vs dio
Which to use?
Whatever you want
Good video! Can you make a video getx with flutter_downloader package?
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
Thanks for liking the video....but I didn't get your question completely. Please refer Todo app in GetX play list...I hope you will get the answer.
@@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 Thank you so much. I already send an email to you.
I received your mail....I will definitely give a look at your project in my spare time.
why my comment got deleted?
For your kind information I have not deleted any comments of yours.
@@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")
Please a make video of GetStream api with this api
no entendi un pingo