Skip to content

Add dark mode to app. #4

Description

@thisisamank

Dark mode will look something like this:

Home Screen Filter Screen Edit Screen Main Screen

Hex code for black used: #000000

How to implement dark mode?

  1. Create a class to fetch the current theme state from shared preference. Add methods to read, write & delete data to and from shared preference.
  2. Add a class to contain ThemeData for light and dark mode. Add method to get current theme. Add methods to set light theme and set dark theme. Store the state to shared preference using the above class you created.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyEasy issue to fix. Good for first timer.enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions