Developing a new Flutter app, pretty consequent, and was wondering to add a dark mode. Is there such a library/package that would automatically apply a dark mode on your actual app?
Like the "Dark Reader" google chrome plugin does on websites ?
No need to be "perfect", just to be "plug and play".
Thanks for answers/hints.
In order to enable dark mode for your Flutter app, you have to do the following changes:
Define
ThemeDatawith dark colors that you want in the app.Then, in the
main.dartfile, you can define your root widget as follows: