flutter_color_plugin 1.1.0 copy "flutter_color_plugin: ^1.1.0" to clipboard
flutter_color_plugin: ^1.1.0 copied to clipboard

A color parse package for flutter,it works on iOS and Android.

pub package PRs Welcome flutter_color_plugin release

A color parse package for flutter,it works on iOS and Android.

Getting Started #

To get a color #

Color color1 = ColorUtil.color('#f2f2f2');
Color color2 = ColorUtil.color('f2f2f2');
print(color1 == color2); //true

Color color3 = ColorUtil.color('#a1FF5733');
Color color4 = ColorUtil.color('a1FF5733');
print(color3 == color4); //true
copied to clipboard

To get a int color #

//The following is the same
int colorInt1 = ColorUtil.intColor('#f2f2f2');
int colorInt2 = ColorUtil.intColor('f2f2f2');
int colorInt3 = ColorUtil.intColor('#fff2f2f2');
int colorInt5 = ColorUtil.intColor('fff2f2f2');
copied to clipboard
5
likes
140
points
242
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

A color parse package for flutter,it works on iOS and Android.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_color_plugin