pub package

juneflow_github

theme_mode_changer

change or switch theme mode in your app.

Installation

  1. If the juneflow project doesn't exist, please create it by following this guide.
  2. open terminal in the juneflow project root directory, enter the following command.
june add theme_mode_changer

Usage

// change to dark theme
ThemeModeChanger.changeToDarkTheme();

// change to light theme
ThemeModeChanger.changeToLightTheme();

// switch theme mode
ThemeModeChanger.switchThemeMode(context);

// check current theme is dark
ThemeModeChanger.isDarkTheme(context);