Flutter Tutorial - Flutter Dark Mode Switch - Light & Dark Theme For Android & iOS

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 9. 07. 2024
  • Switch easily between Dark & Light Theme with the Flutter Dark Mode Switch. We cover both phone system themes and app local themes.
    Click here to Subscribe to Johannes Milke: czcams.com/users/JohannesMilke...
    👉 12 Week Flutter Training | heyflutter.com
    👉 Flutter Masterclass Courses | heyflutter.com/masterclass
    Source Code | github.com/JohannesMilke/them...
    My Courses | heyflutter.com
    Follow Newsletter | johannesmilke.com/newsletter
    SUBSCRIBE HERE
    bit.ly/JohannesMilke
    SUPPORT & SPONSOR ME
    github.com/sponsors/JohannesM...
    RESOURCES
    Provider Tutorial: ‱ Flutter Tutorial - 2/2...
    Switch Tutorial: ‱ Flutter Tutorial - Tog...
    App Bar Tutorial: ‱ Flutter Tutorial - App...
    Search App Bar Tutorial: ‱ Flutter Tutorial - Sea...
    Blur Widgets Tutorial: ‱ Flutter Tutorial - Blu...
    Social App Design Tutorial: ‱ Flutter Tutorial - Soc...
    Tinder Dating App Tutorial: ‱ Flutter Tutorial - Tin...
    Shop Ui Tutorial: ‱ Flutter Tutorial - 1/3...
    TIMELINE
    0:00 Introduction Light & Dark Theme
    0:37 Setup Theme Modes
    1:52 Background Color Theme
    2:20 Change System Theme
    2:49 Text Theme
    4:25 Change Local Theme
    8:31 Get System Theme
    8:48 Get Local Theme
    9:22 Themes For Advanced UI
    9:50 Widget Background Color Theme
    11:04 Icon Theme
    13:02 Fix Theming Issues
    13:37 Avatar Border Theme
    14:27 System & Local Theme
    SHARE | SUBSCRIBE | LIKE FOR MORE VIDEOS LIKE THIS
    *********
    SOCIAL MEDIA: Follow Me :-)
    CZcams | czcams.com/users/JohannesMilke...
    Twitter | intent/follow?ori...
    Linkedin | / johannesmilke
    Instagram | / johannesmilke
    Github | github.com/JohannesMilke
    Medium | / johannesmilke
    Website | johannesmilke.com
    LEARN MORE
    SOURCE CODE | github.com/JohannesMilke
    ARTICLES | / johannesmilke
    PLAYLISTS
    All Flutter Videos | ‱ Flutter Tutorial - Flu...
    Widgets - Flutter | ‱ Flutter Tutorial - Flu...
    Plugins - Flutter | ‱ Flutter Tutorial - Flu...
    Animations - Flutter | ‱ Flutter Tutorial - Tra...
    Designs - Flutter | ‱ Flutter Tutorial - Flu...
    Firebase - Flutter | ‱ Flutter Tutorial - Pag...
    State Management - Flutter | ‱ Flutter Tutorial - Riv...
    CREDITS
    Copyright song "Corporate Technology" by scottholmesmusic.com
    #Flutter #Tutorial #JohannesMilke
    LIKE & SHARE & ACTIVATE THE BELL
    Thanks For Watching :-)
    bit.ly/JohannesMilke
  • Věda a technologie

Komentáƙe • 135

  • @HeyFlutter
    @HeyFlutter  Pƙed rokem

    This might help you :)
    👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
    Source Code: github.com/JohannesMilke/theme_example

  • @dovkaupas
    @dovkaupas Pƙed 3 lety +5

    Man, you make hands down the best Flutter tutorials. Thank you!

  • @TheGaoNan
    @TheGaoNan Pƙed 3 lety +2

    I'm watching each and every video of yours, keep up the fantastic work.
    Can't thank you enough!

  • @SoothingSoulSymphonies
    @SoothingSoulSymphonies Pƙed 3 lety +3

    Awesome as always!

  • @StarBattle08
    @StarBattle08 Pƙed 3 lety +2

    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

  • @mobihen
    @mobihen Pƙed 2 lety

    You are so well informative! Thanks ! your videos are very much fun :) đŸ€©

  • @aschlemmer
    @aschlemmer Pƙed 3 lety +1

    top video, again. Your solution works like a charm. Thank you!

  • @RajA-me9cl
    @RajA-me9cl Pƙed 3 lety +11

    Your channel is very informative. Focusing on one feature at a time. Thank you.

  • @ARTPROGRAMS
    @ARTPROGRAMS Pƙed 2 lety +1

    Thanks! Great video! )

  • @ankitvishwakarma530
    @ankitvishwakarma530 Pƙed 3 lety

    Very clean video with clear step thanks keep doing it

  • @harysuryanto
    @harysuryanto Pƙed 2 lety +1

    Thank you!

  • @Moncellence
    @Moncellence Pƙed 3 lety

    Thank you so much Johannes Milke

  • @barziyassin1
    @barziyassin1 Pƙed rokem +1

    Thanks Johannes, another victory as expected ✌

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      You’re most welcome, Barzy Yasin! 🙂

  • @joegoodman4358
    @joegoodman4358 Pƙed 3 lety

    Great video! I think I'll go with this on my app

  • @ranatr
    @ranatr Pƙed 2 lety +1

    Great video...I need this kind of navigationbar

  • @reemaahuja8397
    @reemaahuja8397 Pƙed 2 lety

    Always helpful.
    Keep up the good workâ™„ïžđŸ‘đŸ»

    • @HeyFlutter
      @HeyFlutter  Pƙed 2 lety +1

      Thank you, Reema Ahuja! 🙂

  • @adamhowley8037
    @adamhowley8037 Pƙed rokem +6

    I have watched this so many times and compared to everyone else it is simple and clearly explained. Thank you! 🎉

  • @Pedro5antos_
    @Pedro5antos_ Pƙed 2 lety +1

    14:42 the last tip was awesome! Because default was the light theme
    THANKS!

  • @thorvalld
    @thorvalld Pƙed 2 lety +2

    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?**

  • @fikreamlak
    @fikreamlak Pƙed rokem

    Your tutorial is awesome. Thank you so much!

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      You’re most welcome, Fikreamlak! 🙂

  • @erick-boh
    @erick-boh Pƙed rokem

    Awesome! Thank you!

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      You’re most welcome, @erick-boh! 🙂

  • @mahmoudmakled5685
    @mahmoudmakled5685 Pƙed rokem

    your channel has motivated me to take this course

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Thanks, Mahmoud Makled! 🙂

  • @behnamjafari2731
    @behnamjafari2731 Pƙed 2 lety

    Well done brother

  • @sanjibdutta9270
    @sanjibdutta9270 Pƙed 3 lety

    Great man. I become your fan 🙂

  • @heavyTeabyBangla
    @heavyTeabyBangla Pƙed 2 lety

    Great Video :)

  • @hanahusein5860
    @hanahusein5860 Pƙed rokem

    That was amazing, thank you

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      You’re most welcome, Hana Husein! 🙂

  • @MuhammadUmair001
    @MuhammadUmair001 Pƙed 2 lety

    thank you

  • @maitreyiprabhaharan4544
    @maitreyiprabhaharan4544 Pƙed 3 lety

    Thanks a lot.

  • @mariagromova2119
    @mariagromova2119 Pƙed rokem

    Thank you 🙏

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem +1

      You are welcome, Maria Gromova 😊

  • @tnd_
    @tnd_ Pƙed 2 lety

    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?

  • @e.b.a2523
    @e.b.a2523 Pƙed 2 lety +1

    God bless u man

  • @naushadhusain443
    @naushadhusain443 Pƙed rokem

    very nice explanation

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Thank you, Naushad Husain! 🙂

  • @mrbusy4215
    @mrbusy4215 Pƙed 3 lety

    Thanks for your helping Us

  • @spinoff2011
    @spinoff2011 Pƙed 2 lety

    @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!!!đŸ™đŸŒđŸ™đŸŒ

  • @ShuaibShahzan
    @ShuaibShahzan Pƙed 3 lety +1

    @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.

    • @ShuaibShahzan
      @ShuaibShahzan Pƙed 3 lety

      @@HeyFlutter Thanks for adding it to you todo list.

  • @VinaySharma-bb6ib
    @VinaySharma-bb6ib Pƙed 2 lety

    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?

  • @dominatingtrend5872
    @dominatingtrend5872 Pƙed 2 lety +1

    bro, thanks for the video, it was really easy to understand. but I have a question what about selected icon theme?

  • @rod5751
    @rod5751 Pƙed 3 lety +1

    Hi Johannes, great video. All other examples use static methods, but you've gone with a class and methods, any reason for that?
    Thanks.

  • @moodmud261
    @moodmud261 Pƙed 3 lety +1

    Good explanation so far. I can easily get it. But i saw that there are some missing or skipped step which will be hard for beginner to understand.

  • @manojkumarnayak5493
    @manojkumarnayak5493 Pƙed 3 lety

    Why scaffold rebuilds many times if we change theme? It should rebuild only once if we change theme right?

  • @thazeroword646
    @thazeroword646 Pƙed 3 lety

    Very nice ui...

  • @tharoseth8064
    @tharoseth8064 Pƙed 3 lety

    The best vdo.

  • @mrwalkan
    @mrwalkan Pƙed 2 lety

    How to change the system navbar color based on light and dark mode

  • @popbob4780
    @popbob4780 Pƙed 2 lety

    Wie geht es das bei der NavigationBar kein Rand darum ist bei mir ist wegen der margin immer ein rand?

  • @sivavenkateshr
    @sivavenkateshr Pƙed 3 lety

    Great 👍

    • @sivavenkateshr
      @sivavenkateshr Pƙed 3 lety

      @@HeyFlutter I have been learning flutter for about a month. Your videos are awesome and easy to understand. Thank you. 😊 And keep rocking.

  • @king4053
    @king4053 Pƙed 3 lety

    How to save the preference and load the theme in startup?

  • @BB-fg9ed
    @BB-fg9ed Pƙed 2 lety +1

    Teacher the theme applies when system dark mode is on but the switch doesn't turn on...Please make a video about it(I copied it exactly as your vid)

  • @markcagas1622
    @markcagas1622 Pƙed 3 lety +1

    Hi! I was wondering if it were possible to have a gradient background for the scaffoldBackgroundColor. Is there a way to implement this?

    • @markcagas1622
      @markcagas1622 Pƙed 3 lety

      @@HeyFlutter Thanks! It works now. Your videos are really helpful. Keep up the great content!

  • @putrabahriantararamadhan6970

    how do dark mode stay active when user closes app and revisits app?

  • @vidyasagargaikwad1268
    @vidyasagargaikwad1268 Pƙed 2 lety

    How can we implement with Multiple Providers? I could not please help sir 🙏🙏

  • @kdrocks7
    @kdrocks7 Pƙed 2 lety

    Will this work when i close the app from the background and restart, will it show the selected theme again?

  • @anasyousuf485
    @anasyousuf485 Pƙed rokem

    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?

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Hey 😊, Anas Yousuf! Check out this solution : stackoverflow.com/a/63954659 I hope it may help you

  • @hwwinn25
    @hwwinn25 Pƙed rokem

    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 ?

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Thank You UJ! Follow this link: stackoverflow.com/questions/69824460/save-full-state-of-a-flutter-application
      I hope you will get your answer 🙂

  • @yunismaruf
    @yunismaruf Pƙed 2 lety

    15:12
    Thanks!

  • @caleboruta4850
    @caleboruta4850 Pƙed 2 lety

    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

    • @HeyFlutter
      @HeyFlutter  Pƙed 2 lety +1

      Thank you, Caleb Oruta! 🙂 it's simple you can stop listening to device's current theme once user selected from app

  • @Axie_thebossbabe
    @Axie_thebossbabe Pƙed 3 lety

    I followed all the processes till the end but only got the UI as in the first section. Why is that?

  • @eddielicea3740
    @eddielicea3740 Pƙed 2 lety

    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?

    • @eddielicea3740
      @eddielicea3740 Pƙed 2 lety

      @@HeyFlutter Thank you very much brother :)!

  • @ivomele6604
    @ivomele6604 Pƙed rokem

    Hi, first of all thank you for all! you are a great developer.
    I have a question, why at 7:14 you use two Provider.Of and not re-use the same?. Thanks

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      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 🙂

  • @Munchalope
    @Munchalope Pƙed 2 lety

    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?

    • @user-cm2mq4fp4e
      @user-cm2mq4fp4e Pƙed 8 měsĂ­ci

      I'm facing the same problem , did you find any solutions ?

  • @vaibhavlohakare4590
    @vaibhavlohakare4590 Pƙed 3 lety

    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 ...

    • @Gagan13
      @Gagan13 Pƙed 3 lety

      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.

  • @ScottKFraley
    @ScottKFraley Pƙed rokem

    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!

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem +1

      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 🙂

  • @deepjyotibaishya7576
    @deepjyotibaishya7576 Pƙed 2 lety

    i am not able to access changenotifier provider On tap Navigation material page route .

    • @deepjyotibaishya7576
      @deepjyotibaishya7576 Pƙed 2 lety

      @@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 .

  • @alperbayata2877
    @alperbayata2877 Pƙed 2 lety +1

    How to save theme in local?

  • @kickart7517
    @kickart7517 Pƙed 2 lety

    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?

    • @HeyFlutter
      @HeyFlutter  Pƙed 2 lety

      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 🙂

  • @davalien7358
    @davalien7358 Pƙed rokem

    How do i chantge automatically all icons when changing to dark theme

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      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 🙂

  • @xluzka
    @xluzka Pƙed rokem

    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?

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Thank You Lucas Monteiro! Follow this link: pub.dev/packages/custom_navigation_bar
      I hope you will get your answer 🙂

  • @phosepio.
    @phosepio. Pƙed 9 měsĂ­ci

    dunno if anyone would see this but is there a way to change the switch into a button?

    • @HeyFlutter
      @HeyFlutter  Pƙed 9 měsĂ­ci

      Yes, @phosepio. 🙂you can change it. It's pretty easy. But still, I prefer switch is a better option for better UI/Ux.

  • @MusiGod
    @MusiGod Pƙed rokem

    one issue i am facing when restarting the app the theme reset

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Thank you, MusiGod! 🙂. Try to provide enough details with your question whenever you face any issue.

  • @erlend1587
    @erlend1587 Pƙed 3 lety

    Thanks for a great tutorial! Would you know how to support dark mode on a CupertinoApp?

    • @erlend1587
      @erlend1587 Pƙed 3 lety

      @@HeyFlutter Oh, just watched this video, but it is using MaterialApp, which supports themeMode and darkTheme. CupertinoApp doesn't đŸ€”

  • @ilwsl
    @ilwsl Pƙed rokem

    I want to change the theme with a dropdownmenu, some can help?

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem +2

      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 🙂

    • @rexarvind-in
      @rexarvind-in Pƙed rokem

      @@HeyFlutter waaoo, you are so kind to help. well done 😇

  • @ReyRendryo
    @ReyRendryo Pƙed 8 měsĂ­ci

    how to make the switch off for first open the apps?

    • @HeyFlutter
      @HeyFlutter  Pƙed 8 měsĂ­ci

      Thank You @ReyRendryo! Follow this link: stackoverflow.com/questions/60792667/flutter-switch-toggles-off-on-its-own
      I hope you will get your answer 🙂

  • @spoiled_kitten
    @spoiled_kitten Pƙed 2 lety

    Might be a dumb question. But does this save upon restarting the app? Also does it save across different pages?

    • @spoiled_kitten
      @spoiled_kitten Pƙed 2 lety +1

      @@HeyFlutter sweet! Thankyou! Love tutorials btw!!!

    • @spoiled_kitten
      @spoiled_kitten Pƙed 2 lety

      @@HeyFlutter How do i set it acros the pages tho? I cannot seem to make it the same across different pages if i change it

  • @sagarmoriya9773
    @sagarmoriya9773 Pƙed 3 lety

    can you make dark mode state changes using getx package instead of provider package

    • @sagarmoriya9773
      @sagarmoriya9773 Pƙed 3 lety

      @@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

  • @broteendas1194
    @broteendas1194 Pƙed rokem

    5:30 Why did we use *get* there? Couldn't we just give isDarkMode the value directly?

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem +1

      Hey, Broteen Das 🙂 Getters and setters are part of OOPS, you can use directly also

    • @broteendas1194
      @broteendas1194 Pƙed rokem

      @@HeyFlutter Got it sir... I'll look more into it

  • @flutterquick
    @flutterquick Pƙed rokem

    anyone who knows how to i persist theme data in my phone.

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem +1

      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 🙂

  • @peacefulnaturalworld8964
    @peacefulnaturalworld8964 Pƙed rokem +1

    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.

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Thanks for the suggestion @peacefulnaturalworld8964! 🙂

  • @rexarvind-in
    @rexarvind-in Pƙed rokem

    do you have a course on Udemy, I'd love to buy.
    we all would buy 🎉, you are good teacher.

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      Thank You Arvind Kumar!. Learn about it here: johannesmilke.teachable.com/p/home

  • @rangasamyeswaran8440
    @rangasamyeswaran8440 Pƙed 2 lety +1

    i want to know switch theme by using icon button

  • @k_EC_ANURAGPAL
    @k_EC_ANURAGPAL Pƙed 3 lety

    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 ❀....

  • @Gagan13
    @Gagan13 Pƙed 3 lety

    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.

    • @Gagan13
      @Gagan13 Pƙed 3 lety

      @@HeyFlutter Thanks. Hope you do it soon and mention it in pinned comment.

  • @angadcheema
    @angadcheema Pƙed 2 lety

    and i thought kotlin was difficult

    • @HeyFlutter
      @HeyFlutter  Pƙed 2 lety

      Thanks for your feedback, Angad C! 🙂

  • @idiotsinaccidents
    @idiotsinaccidents Pƙed 2 lety +1

    DISLIKE!
    The selected theme does not persist when app is relaunched. There is no easy way to apply shared preferences method using this structure.

  • @oijgg3p
    @oijgg3p Pƙed 3 lety +1

    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.

    • @oijgg3p
      @oijgg3p Pƙed 3 lety

      @@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.

    • @Gagan13
      @Gagan13 Pƙed 3 lety

      @@HeyFlutter fix this pls, now i have followed your tutorial in app and now it is of no use and pls update your github and let people know.

  • @ftfmusic7182
    @ftfmusic7182 Pƙed rokem

    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 😂😂😂😂😂😂😂

    • @HeyFlutter
      @HeyFlutter  Pƙed rokem

      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.

  • @lbm5444
    @lbm5444 Pƙed 2 lety

    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,
    ...
    );})}

  • @JassimSays
    @JassimSays Pƙed 10 měsĂ­ci

    Thank you!

    • @HeyFlutter
      @HeyFlutter  Pƙed 10 měsĂ­ci

      You are welcome, @JassimSays!