smit-happens / lit_bit_app

Flutter application designed to work with a lit-bit activity logger.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Dark theme and toggle

PatHock opened this issue · comments

End goal

Toggle between an app-wide eyeball-laser-blast white background theme and a dark theme, preferably with a completely black background. This toggle could be in the settings view.

Relevant Info/Links

https://flutter.io/cookbook/design/themes/
Themes can be applied to MaterialApp objects.

Your Code

Example code from the link above:

MaterialApp(
  title: title,
  theme: ThemeData(
    brightness: Brightness.dark,
    primaryColor: Colors.lightBlue[800],
    accentColor: Colors.cyan[600],
  ),
);