from_css_color 1.2.0 from_css_color: ^1.2.0 copied to clipboard
Creates Color instance from CSS color string according to https://drafts.csswg.org/css-color-3
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add from_css_color
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
from_css_color: ^1.2.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:from_css_color/from_css_color.dart';