easy_dynamic_theme 2.3.1 easy_dynamic_theme: ^2.3.1 copied to clipboard
Automatically get your OS defined Theme (Dynamic), force your prefered one (Light / Dark) and persist your choice in the device.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add easy_dynamic_theme
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
easy_dynamic_theme: ^2.3.1
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:easy_dynamic_theme/easy_dynamic_theme.dart';