if i want to pass two or more word as example : i want to save word jhon then when i went back to re-type , i want word jhon not erased and type the new word also how can i do that ?
For D.R.Y approach, you can do this in StatefulWidget. class ScreenTwo extends StatefulWidget { final String value; ScreenTwo({@required this.value}); @override _ScreenTwoState createState() => _ScreenTwoState(); } class _ScreenTwoState extends State { @override Widget build(BuildContext context) { return Container( child: Text("${widget.value}"), ); } }
Just amazing !! Now, just stick to your channel and waiting for your more videos on flutter. Thanks a lot for providing such an amazing content. Keep it up and God bless you. ❤️
Hi, Prince. Great tutorial. What VS Code extension do you use to highlight the different braces? It makes it so easy to keep track of the hierarchy of the widgets.
6:20 From stackoverflow regarding passing a value to a stateful widget: "Don't pass parameters to State using it's constructor. You should only access these using this.widget.myField. Not only editing the constructor requires a lot of manual work ; it doesn't bring anything. There's no reason to duplicate all the fields of Widget." Basically don't do _screenTwoState createState() => _screenTwoState (value); and don't add anything to the _screenTwoState class. Just use widget.value from _screenTwoState class
Can u show this in future builder which returns list view builder binder with json data when one list tile is tapped it should return the details page of that particular parent item!..Bhai plz Help there are no videos to explain this so frustrating from 2 days 🥺✌🏽 and fast plz 🙏🏽😩😭
Thanks very clear video, but how to pass multiple data between pages and how to store and access them in later pages which are stateful? any link to will be appreciated .. thanks
Instead of passing values across the screens, i am intended to pass these values across the Listtile in body of the screen. After saving value in variable in one ListTile, i am not able to use this variable in another Listile. Could you please suggest what would be the possible solution.
It does not work. It gives error which says that make the "Key" parameter required. And it also generates error in first page which requires the value for "Key" parameter present in second page.
I almost went bald because of this problem! You explained it so well. Thank you, man!
William no kill me abeg
How far? How’s is it going? I dey try understand the whole thing but e no gree enter head oo
You nailed it sir
Thanks bro, You save my time , keep it up
love you bro i was struggling for this and you just made my day... cleared everything
Great tutorial!! Thanks a mill
It helped me to solve my problem. Thanks!
if i want to pass two or more word
as example : i want to save word jhon then when i went back to re-type , i want word jhon not erased and type the new word also
how can i do that ?
For D.R.Y approach, you can do this in StatefulWidget.
class ScreenTwo extends StatefulWidget {
final String value;
ScreenTwo({@required this.value});
@override
_ScreenTwoState createState() => _ScreenTwoState();
}
class _ScreenTwoState extends State {
@override
Widget build(BuildContext context) {
return Container(
child: Text("${widget.value}"),
);
}
}
Just amazing !! Now, just stick to your channel and waiting for your more videos on flutter. Thanks a lot for providing such an amazing content. Keep it up and God bless you. ❤️
You saved me! Thank you so much. I had been going crazy about how to do this.
Thank you so much for this video!!!
Hi, Prince. Great tutorial. What VS Code extension do you use to highlight the different braces? It makes it so easy to keep track of the hierarchy of the widgets.
Thanks and it's bracket pair colorizer
This video has been a great help to me,thank u Desi programmer
Thanks for the clear explanation, cheers!
you explained very well . well done bro your way of explanation is amazing in 9 min you covered a lot . superb keep doing amazing things like this .
6:20 From stackoverflow regarding passing a value to a stateful widget:
"Don't pass parameters to State using it's constructor. You should only access these using this.widget.myField.
Not only editing the constructor requires a lot of manual work ; it doesn't bring anything. There's no reason to duplicate all the fields of Widget."
Basically don't do _screenTwoState createState() => _screenTwoState (value);
and don't add anything to the _screenTwoState class.
Just use widget.value from _screenTwoState class
True, I am working on updating these videos, back then this method was kinda being used a lot.
I was struggling with this problem and you had the exact answer I was looking for. Thank You !
ty Master I need little more info about passing arguments like in Moodal.Pageroute
Is it possible to send variable from 1 widget to another without navigate or screen change ?
amazing explanation. thanks a lot.
Good video. but what we do for return back from suppose screen3 (moved from sreen2) to screen2 and get the name john again
Also you can do widget.value without passing the value in _screentwostate
Can u show this in future builder which returns list view builder binder with json data when one list tile is tapped it should return the details page of that particular parent item!..Bhai plz Help there are no videos to explain this so frustrating from 2 days 🥺✌🏽 and fast plz 🙏🏽😩😭
Thankyou This Help Me A Lot
Thank you, easy tha!!!!!!!!!!!!!!!!!!!!!!!!!!!!
thank you for helpful video
thanks! You really helped me out!
Love you broo you solve my headace😘😘😘😅😅
Thanks very clear video, but how to pass multiple data between pages and how to store and access them in later pages which are stateful? any link to will be appreciated .. thanks
Thank you much, you made my day... Great videos by the way !
thank you bro , VERY CLEAR
love you bro, this video help me alot
Soo helpful video!! Thankx allot!!
Great tutorial!
a great explanation for statefull. thank you so much
Instead of passing values across the screens, i am intended to pass these values across the Listtile in body of the screen. After saving value in variable in one ListTile, i am not able to use this variable in another Listile. Could you please suggest what would be the possible solution.
I didn't actually get the Question
@@DesiProgrammer Can you give me your github username, and i'll share my problem? I think that would be best way to explain my problem.
it works, thank man
Finally!! Thank you!
But how/where do I style the text now?
Thank u very much, this helped a lot :D
ur the best thanks ..
thanks dude that was really needed!!!
How do i do this for multiple values?
A comma, List or Map
please help me how to use pushnamed to pass value to another page
Thank u, I finally know what I am doing
How can I do the same in reverse from stateful to less
How about passing values back to the previous view?
very nice thank s
sir g this is working fine but how can i send one TabBar data to another tabbar by removing data from first tabbar ????????????
Cool stuff, thanks :)
thank you so much
Thanks, it's make me clear now about it.
It does not work. It gives error which says that make the "Key" parameter required. And it also generates error in first page which requires the value for "Key" parameter present in second page.
Thank you!!!!!!!!!!!!!!!!!!!!!!
good video but i still don't understand why do you need "key" in the constructor
bro thanks a lot .🔥🔥❤️❤️
Sir, can we pass data without naviagator and call it somewher else
love you!
thanks
Sir What is key, in Constroctore. In C# i did not use this things
thanks brother
Gracias compa :D
great
Damn ! thank you !!
Nice
how i can pass the data without changing to the page we re sending the data to
Why was key : key added at 7.10?
Navigator operation requested with a context that does not include a Navigator. I got this error!! please help
nicer
How to pass data from stateless to stateful
i am also subscribed your channel
mine turn out to null. plss help
+
wow thanks bro hahahahah
First of all, learn that the class starts with a capital letter
+1 subscriber from me
Lol why is everyone copy pasting in comments😂
bro your desi program but your speaking language is not desi!
desi programmer ho or angreji pel rhe ho....western hypocrisy k shikaar bn gye tm bhi..
love you bro i was struggling for this and you just made my day... cleared everything
very helpful thank you
thanks
love you bro i was struggling for this and you just made my day... cleared everything
love you bro i was struggling for this and you just made my day... cleared everything
love you bro i was struggling for this and you just made my day... cleared everything
love you bro i was struggling for this and you just made my day... cleared everything
love you bro i was struggling for this and you just made my day... cleared everything
love you bro i was struggling for this and you just made my day... cleared everything
love you bro i was struggling for this and you just made my day... cleared everything