Flutter Dark Theme Tutorial | Change Theme Runtime

Опубликовано: 19 Ноябрь 2024
на канале: CodeX
22,199
346

In this tutorial we will see how we can switch light theme and dark theme dynamically.

Git Source : https://github.com/afzalali15/Flutter...

You may use SharedPreference to store current theme so that when user launches application next time the same theme is available.

If you want to use package instead:
https://pub.dev/packages/dynamic_theme (by kozsir.norbert)


Do like the video and subscribe to channel if you haven't already. Feel free to write your suggestions in comment box.

Other tutorial links:

Flutter Hero Animation | ListView
   • Flutter Hero Animation Tutorial| List...  

Flutter Animation | Simple scale transition
   • Flutter Animation Tutorial | Simple s...  

Happy coding :)