Thanks for starting it with a new project, a lot of tutorials starts with a somewhat done app already and you have to watch their previous videos first
Great tutorial kind Sir! My question is, how do I change all the colors, etc. if my app does NOT have a theme switch, but only goes by the system settings? Thanks!
Thank You Scott K. Fraley! Follow this link: stackoverflow.com/questions/49203740/how-to-change-the-entire-themes-text-color-in-flutter I hope you will get your answer 🙂
Clean and clear! Thank you for the effort, straight to the point and very helpful! I do have a question, **How to add Shared preferences to this project?**
So in the bonus section, you set theme mode to ThemeMode.system; when I change display to darkmode and start my app, the switch isn't toggled on automatically, I have to click it twice. can you help me with this?
Thank You Ivo Mele! Follow this link: stackoverflow.com/questions/58774301/when-to-use-provider-ofx-vs-consumerx-in-flutter I hope you will get your answer 🙂
I have used custom colors in my app like one container having a certain color and then another container having a different one (same goes with text widget), so doing a theme like this way maybe won't solve it. so do I have to use ternary for it everywhere? or is there a better solution?
@Johannes Milke Thank you so much for this wonderful tutorial. Could you please make a tutorial focusing on theming form fields such as TextFormField, radio button, checkbox and so on using ThemeData.
@johannes I have a question!! In the minute 7:14 why didn´t you use the top reference to the provider instead of the one that you put in the onchange callback? I don´t understand the difference between both... :s Thanks a lot!!!🙏🏼🙏🏼
I use vs code for android and ios simulation via flutter on my android emulator and the theme doesn't work on both platforms is use the custom ThemeData class. Do you have any solution?
Pls update your github with shared pref. so that people can really use this in their app. How can a tutor like you miss that. People follow you for some reason and you should make it worth. Don't give them reason to unsubscribe you. Waiting for the update. Your 10 mins time could save beginners 5 hours, first to understand the reason and to do this all over again in the app by following somebody else.
simply explained.....excelent brother....today i discovered something i would like to share with you...... If someone helps others.. Who helps him If someone serving others who is serving him If anuraag said hurtful things to shivuBaby then who said such things to anuraag It's all balanced by God Mystery solved💪😄👌 If you start loving everyone God will start loving you❤🌙❤🌙❤... Universal balance⚖️⚖️⚖️ This should be unconditional... If you put a condition on ❤... Then it will cease to be ❤....
Thank You DAVALIEN 73! Follow this link: stackoverflow.com/questions/60232070/how-to-implement-dark-mode-and-light-mode-in-flutter I hope you will get your answer 🙂
man your a really mvp for flutter developers, you even let us thing what actually missing in some of your video on which is good for our critical thinking. i have a question when i change the theme inside the app and close it, it return to its default theme which is system themes? how can i stay it in the dark mode after i close the app and the system theme was light mode?
Thank You Kickart! Follow this link: stackoverflow.com/questions/59852379/saving-state-after-app-is-closed-with-provider-package-flutter I hope you will get your answer 🙂
Hi Johannes, thank you for your great tutorials! I have a question: I want to change a variable (different assets for dark and light) in my home.dart based on whether dark mode is activated or not. Do you know how/if that is possible?
hiii @johannes Mike i implement this video in my app but get problem is if a reload that app my sleected the i.e dark theme turn it into light i search many solutions but i didnt find any relative plz help me in this ...
Yes, because in this tutorial he hasn't used shared preference to save the theme and i don't know why he has still not updated his github with shared pref. This tutorial is incomplete and of no use.
@@HeyFlutter I solved . I removed Import path . then i use auto import . Basically i rename using f2 .but rename not changed everywhere . thats why i got error .
Anyone know of a way to implement this in the settings_ui tutorial? Whenever I toggle the switch on the settings page, it bounces me out to the homepage. I'd like for the toggle to work but keep me in the settings page. Any ideas?
Very lovely video, simple and easy to implement. How do I have the theme chosen to flutter storage they don't get the default system theme after choosing a theme
For MultipleProviders use the context from the *builder* method and not the one MaterialApp is using. Widget build(BuildContext notThisContext) { return MultiProvider( providers: [ ...], builder: (useThisContext, child) { return MaterialApp( themeMode: Provider.of(useThisContext).themeMode, ... );})}
@@HeyFlutter also picking multiple images from gallery and displaying it on screen 😅 cause using image picker we can only select one image there are lots of package like multi image picker but it doesn't work well hope you will make video on this topic
Thank You Willders Daviel Carvajal Peña! Follow this link: stackoverflow.com/questions/60232070/how-to-implement-dark-mode-and-light-mode-in-flutter I hope you will get your answer 🙂
Thank You amanuel gulilat! Follow this link: stackoverflow.com/questions/68267016/how-to-save-the-state-of-the-app-with-the-current-theme-in-flutter I hope you will get your answer 🙂
you really don't know about flutter too much like a professional to teach. you just google it and copy past codes here. you even don't have enough experience with flutter. you are not theming like a professional. thanks god there is someone who is worse enough in flutter than me 😂😂😂😂😂😂😂
Thank you, FTF Music! 🙂. We always learn and try to improve ourselves, you kind suggestion will help in that regard. Let us know what should we improve in our videos? Your suggestion will be highly appreciated.
Dislike. Next time finish the project with Shared Prefs, don't scam people. We can do shit with this toggle switch if we lose all data when we leave the app. (Don't say 'oh here is shared prefs video', no, you should have placed it here already). Next time I see a state that you don't care to save, I will unsubscribe.
@@HeyFlutter It's not about me, but some kids that are just learning flutter. I know when I started, I followed a video to a work (I could just guess how it feels when they find out Dark Mode stops working every time they close an app). And, it's just 3 lines, initialize, setBool, getBool and done. Don't take my rant as a bad thing, you are still an amazing teacher.