theme_manager 2.0.4 theme_manager: ^2.0.4 copied to clipboard
A theme manager for light, dark, and system themes. Change the theme dynamically and the selected theme will be persisted.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add theme_manager
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
theme_manager: ^2.0.4
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:theme_manager/theme_manager.dart';