adaptive_theme 3.7.2
adaptive_theme: ^3.7.2 copied to clipboard
Allows to change between light and dark theme dynamically and add system adaptive theme support.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add adaptive_themeThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
adaptive_theme: ^3.7.2Alternatively, 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:adaptive_theme/adaptive_theme.dart';