colors_parser 1.0.2 colors_parser: ^1.0.2 copied to clipboard
A Material Colors parsing library. Parse MaterialColor and MaterialAccentColor values with an optional indexed shade as well as black and white variants and even hex values.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add colors_parser
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
colors_parser: ^1.0.2
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:colors_parser/colors_parser.dart';