Комментарии:
how to make the switch off for first open the apps?
Ответитьdunno if anyone would see this but is there a way to change the switch into a button?
ОтветитьThank you!
ОтветитьAwesome! Thank you!
Ответитьone issue i am facing when restarting the app the theme reset
ОтветитьHello I'm using this code after watch video. I like code but if you use with shared prefrences for your code, It will be better.
ОтветитьThank you 🙏
ОтветитьYour tutorial is awesome. Thank you so much!
ОтветитьThanks Johannes, another victory as expected ✌
ОтветитьHi Johannes, greetings from Brazil! I want to create a custom navbar, just like yours. Is there any video you're teaching how to make it?
Ответитьanyone who knows how to i persist theme data in my phone.
ОтветитьHow do i chantge automatically all icons when changing to dark theme
Ответитьvery nice explanation
Ответитьyour channel has motivated me to take this course
Ответить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 😂😂😂😂😂😂😂
ОтветитьI have watched this so many times and compared to everyone else it is simple and clearly explained. Thank you! 🎉
Ответить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!
Ответить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?
ОтветитьWonderful Video, i was wondering, is there any way how i can save the state? when hot reloading the theme returns from dark to light ?
Ответитьdo you have a course on Udemy, I'd love to buy.
we all would buy 🎉, you are good teacher.
I want to change the theme with a dropdownmenu, some can help?
ОтветитьThat was amazing, thank you
Ответитьand i thought kotlin was difficult
Ответить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?
ОтветитьAlways helpful.
Keep up the good work♥️👍🏻
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<ThemeProvider>(useThisContext).themeMode,
...
);})}
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
Ответить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?
Ответитьi am not able to access changenotifier provider On tap Navigation material page route .
Ответить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?
ОтветитьWell done brother
ОтветитьHow to change the system navbar color based on light and dark mode
ОтветитьWie geht es das bei der NavigationBar kein Rand darum ist bei mir ist wegen der margin immer ein rand?
Ответить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?
ОтветитьYou are so well informative! Thanks ! your videos are very much fun :) 🤩
Ответитьhow do dark mode stay active when user closes app and revisits app?
ОтветитьMight be a dumb question. But does this save upon restarting the app? Also does it save across different pages?
Ответитьthank you
ОтветитьHow to save theme in local?
ОтветитьGreat video...I need this kind of navigationbar
Ответитьbro, thanks for the video, it was really easy to understand. but I have a question what about selected icon theme?
ОтветитьThanks! Great video! )
ОтветитьThank you!
ОтветитьGod bless u man
Ответить