custom_theme 0.1.0 custom_theme: ^0.1.0 copied to clipboard
Custom theme with user data support. Plugin wrap standard Flutter ThemeData to CustomData and allow to add some user defined data. Wrapped data is passed to MaterialApp theme and darkTheme params and [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add custom_theme
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
custom_theme: ^0.1.0
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:custom_theme/custom_theme.dart';