from_css_color 2.0.0 copy "from_css_color: ^2.0.0" to clipboard
from_css_color: ^2.0.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: ^2.0.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';
22
likes
150
pub points
100%
popularity

Publisher

unverified uploader

Creates Color instance from CSS color string according to https://drafts.csswg.org/css-color-3

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on from_css_color