from line 90 to 107 at 7:49 and line 38 to 53 at 9:23 , can I use Switch Case? It works for me as I leave the default field as blank as we have no exception. Your code seems nice and clean, easy to understand and to immitate for beginners.
thanks for sharing you nice video. i have a question, how can i change from one screeen to another.. example in contact page i have a new button call new contact when i click it, it change the body content from contact page to new contact page?
If you want to go to another screen you can use Navigator.push() and if you want to change the current page so just set new value for currentPage variable.
"message": "The method 'MyHeaderDrawer' isn't defined for the type 'MyApp'. Try correcting the name to the name of an existing method, or defining a method name
Same problem here, changing the order with Navigator statement does not help. Error: The function setState isn' t undefined. Google search says: you cannot use setState outside stateful widget
Enum stands for enumerated type, a type of data where only a set of predefined values exist. In Dart, Enum is simply a special kind of class used to represent a fixed number of constant values.
Hi RapidTech, thanks for this awesome video, I am learning Flutter, and even though this video has more than a year, not sure why in the 7:41 after the variable currentPage is created, Flutter does not recognize it. It still says "Undefined name 'currentPage'." when I hover the mouse over the variable where "currentPage == DrawerSections.dashboard". My version of Flutter at this time is 2.5.3, I have not upgraded to version 3.0 yet.
@@brikz3546 Hi Brikz, I do not know what happened, I did reply two days ago. Anyway, it looks like the scope of the variable currentPage does not reach the MyDrawerList() widget, so, what I did was create the variable inside de MyDrawerList() widget.
@@FlutterCool Thank you for your comment, it looks like UA-cam blocks my comment because I put the Github link. I have replied twice, anyway, what I did create the variable inside de MyDrawerList() widget, because it looks like it was out of scope, and it was not recognized.
Thanks for sharing. Waiting for more lessons
Thanks and you are most welcome so I am making new videos :)
Amazing! This looks really clean
Thanks and follow our channel for more videos :)
Was there a shortcut you ran at 7:14 to convert the enum to list of menu items?
No, I just copied from somewhere to take less time
hey dev, can you explain what you did at @9:35? what is this new container class doing
Thanks for your comment, just add the container variable in body 👍
from line 90 to 107 at 7:49 and line 38 to 53 at 9:23 , can I use Switch Case? It works for me as I leave the default field as blank as we have no exception. Your code seems nice and clean, easy to understand and to immitate for beginners.
Yes of course
This will help a lot, thanks ✨️
Glad to hear!
Navigator.pop(context); its not working for me / the error is in context , any solution??
You need to pass the current context for it so you can share your error to yasinm289@gmail.com to solve it.
The child: Icon(Icons.dashboard...) part has error to me. It say that the child parameter is undefined. Can you please help me?
Can you share your code through email(yasinm289@gmail.com) to solve the issue?
@@FlutterCool exactly the same code as you do. It's just the expanded part after that the child term is undefined
Sent you an email bro hope you could help me
Clean the project cache by running
flutter clean cache
Then invalidate caches / restart Android Studio or VS Code.
Nunca habia visto esta forma de implementacion, muy increible todo, gracias Saludos desde Republica Dominicana >)
Gracias por tu gran comentario, comparte y sigue nuestro canal :)
please do all of these for one app. Make complete app by using Login, sign up, drwer menu and others.
Thanks for your comment, I will do :)
great work but i want to know how to make the drawer shows on other screens which is not on the drawer
I didn't get your question. can you give us more info to answer you the correct one?
Wonderful! Great job 😊
Thanks :)
thanks for sharing you nice video. i have a question, how can i change from one screeen to another.. example in contact page i have a new button call new contact when i click it, it change the body content from contact page to new contact page?
If you want to go to another screen you can use Navigator.push() and if you want to change the current page so just set new value for currentPage variable.
@@FlutterCool yes will like to change the value of current page variable from another dart file
You need to use one of state management for this
Hi.How to take navigation drawer for text field? I am trying to draw ola clone app
Add your text field inside your drawer.
"message": "The method 'MyHeaderDrawer' isn't defined for the type 'MyApp'.
Try correcting the name to the name of an existing method, or defining a method name
I think you didn't create the MyHeaderDrawer class or didn't import it in the main page
@@FlutterCool Thankyou for replying
You're welcome
Thanks for the video! BTW you could use a switch instead of if-else statements, this will be shorter :)
welcome and yes I could use the switch but because of simplicity.
navigator.pop(context);
setState(()
this one turns red on mine. please help
Use setState before Navigator
@@FlutterCool still not working please help
Same problem here, changing the order with Navigator statement does not help.
Error: The function setState isn' t undefined.
Google search says: you cannot use setState outside stateful widget
Pls share your code via yasinm289@gmail.com to solve your problem.
Nice, thanks for sharing
Thanks for watching
thank you so much
You're welcome!
how can i add an animation to this navigation?
It is a normal drawer and doesn't has animation so if you want to add animation you can use another package from pub.dev website.
Thank you!!! sir
Welcome & share our video :)
Great!
Thanks dear Engineer 😃
what is enum bro?
Enum stands for enumerated type, a type of data where only a set of predefined values exist. In Dart, Enum is simply a special kind of class used to represent a fixed number of constant values.
hi dev. ı can't understant you in 7:14. what did you do?
Add all the menus
@@FlutterCool thank you so much 🙏
Instead of taking drawer section it's taking drawer selection
Yes but it is just a name
my image is not showing
Maybe you set the wrong path or you can share your code with us through this email yasinm289@gmail.com
gr8
Thanks :)
Hi RapidTech, thanks for this awesome video, I am learning Flutter, and even though this video has more than a year, not sure why in the 7:41 after the variable currentPage is created, Flutter does not recognize it. It still says "Undefined name 'currentPage'." when I hover the mouse over the variable where "currentPage == DrawerSections.dashboard". My version of Flutter at this time is 2.5.3, I have not upgraded to version 3.0 yet.
I had the exact same problem.. did u find a way?
@@brikz3546 yes, I did solve it, I can't tell right now, but I can upload it to my github and send you the link for you to compare.
@Arturo If you describe your solution here, it will help others.
@@brikz3546 Hi Brikz, I do not know what happened, I did reply two days ago. Anyway, it looks like the scope of the variable currentPage does not reach the MyDrawerList() widget, so, what I did was create the variable inside de MyDrawerList() widget.
@@FlutterCool Thank you for your comment, it looks like UA-cam blocks my comment because I put the Github link. I have replied twice, anyway, what I did create the variable inside de MyDrawerList() widget, because it looks like it was out of scope, and it was not recognized.
Thank you
You're welcome
One issue is occurring
What is the issue?