from_css_color 0.1.0 copy "from_css_color: ^0.1.0" to clipboard
from_css_color: ^0.1.0 copied to clipboard

outdated

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

From CSS Color #

A package that creates Color instances from CSS color strings according to https://drafts.csswg.org/css-color-3. Hex, RGB and X11 keywords are supported. Work on HSL is in progress and should be ready up to the next release.

Usage #

To use this plugin, add from_css_color as a dependency in your pubspec.yaml file.

Example #

Import the library.

import 'package:from_css_color/from_css_color.dart';

And use it anywhere you want to create a Color from CSS color definition format:

Container(
  color: fromCSSColor('#ff00aa'),
  // ...
)

Visit examples for more details.

22
likes
0
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

License

unknown (license)

Dependencies

flutter

More

Packages that depend on from_css_color