Hi Johan. Both in my version and your version of the code the 'onTap' Function varible in the 'AppDrawerTile' class returns an error at: line 219: onTap: onTap, The error reads: "The argument type 'Function' can't be assigned to the parameter type 'void Function()?'." Do you have any advise?
How can we, instead of showing that text "inbox", "starred" etc, link to another page we made, for example that 'Upgrade to premium' thing we made earlier? Can we put that whole code in another dart file and link to it? How that works?
in defaults.dart file, the line of code below throws an error: static final Color drawerItemSelectedColor = Colors.blue[700]; A value of type 'Color?' can't be assigned to a variable of type 'Color' Remove the [700] and it works fine.
@@JohanJurrius I noticed you're using Flutter 2.05 and I'm using Flutter 2.21. There seems to have been some changes: '@required' becomes simply 'required' and 'final Function onTap;' becomes 'final VoidCallback onTap;'
Thanks for the comment. Yes with default projects now being null safe, we need to use null safety guidelines. All future videos will have them. Regards
Check my Provider videos for state management. You can also save some data using Shared Preferences (also in my playlist) if you want data to be there when the app closes and opens again.
You are really a great teacher. Learning from you is easy and effective. Love to get some more videos or suggestions from you.
I don't know why this video couldn't get at least 100k view per year....very easy ,simple and detail titorial...
Thanks sir❤
Very good explanation. Easy to follow and good quality. I’m just starting out on my flutter adventure and this has helped.
why is stateless widget is used in line 144 . I guess stateful could have been used . Your opinions??
Really help alot, I tried other channels but not full understand like you, professor
Thanks a lot. Very neatly explained !!
Once again, a great video. Thanks a lot
Thanks a lot. This was really helpful.
Great video. Thank you so much!
Hi Johan. Both in my version and your version of the code the 'onTap' Function varible in the 'AppDrawerTile' class returns an error at:
line 219: onTap: onTap,
The error reads:
"The argument type 'Function' can't be assigned to the parameter type 'void Function()?'."
Do you have any advise?
Try declaring as VoidCallback instead of Function. Let me know if it worked.
@@JohanJurrius It worked for me :D
declare it like this
final function() onTap ;
You are the best!
Very good tutorial
How can we, instead of showing that text "inbox", "starred" etc, link to another page we made, for example that 'Upgrade to premium' thing we made earlier? Can we put that whole code in another dart file and link to it? How that works?
Nicee tutorial
in defaults.dart file, the line of code below throws an error:
static final Color drawerItemSelectedColor = Colors.blue[700];
A value of type 'Color?' can't be assigned to a variable of type 'Color'
Remove the [700] and it works fine.
You can also try Colors.blue.shade700;
@@JohanJurrius I noticed you're using Flutter 2.05 and I'm using Flutter 2.21. There seems to have been some changes: '@required' becomes simply 'required' and 'final Function onTap;' becomes 'final VoidCallback onTap;'
@@JohanJurrius Thanks! 'Colors.blue.shade700;' works as long as you don't put parentheses on the end.
Sorry, tried ro remember without an editor on front of me. Glad it works. Will edit my reply.
Thanks for the comment. Yes with default projects now being null safe, we need to use null safety guidelines. All future videos will have them. Regards
great video .thank you
I have a problem with the this.index and this. OnTap..I followed what was done..but it's get flagged red
Try this for a function: final void Function() onTap;
Thank for video
I get an error when I use use the this keyword
how do i save the state of one of the screens?
Check my Provider videos for state management. You can also save some data using Shared Preferences (also in my playlist) if you want data to be there when the app closes and opens again.
👏😀
Can I have the source code, please???
Placed it in the video description for you
@@JohanJurrius Thanks a lot brother .. You are so kind. God might live you long..
18:40
hi Johan I really love you so match the easy way you teach me how learn flutter fast., but Johan do not forget to use SafeArea Widget. love