colornames 0.0.1+3
colornames: ^0.0.1+3 copied to clipboard

Get a name for given Color. This package contains hardcoded names for 2231 color values. For an input color, it finds a name in the list which has the closest match.

Color Names #

Get a name for given Color

See working Online Demo

Getting Started #

Follow instruction for Installation.

Import the package:

import 'package:colornames/colornames.dart' 

Usage #

Provide a Color to ColorNames.guess(color) or use extension method on color or int.

final color = Color(0xFFFFFF);
ColorNames.guess(color) ; // White
color.colorName; // White

final int colorValue = 128;
colorValue.colorName; // Navy Blue
0x007fff.colorName;// Azure
1
likes
130
pub points
53%
popularity

Publisher

thexaib.com

Get a name for given Color. This package contains hardcoded names for 2231 color values. For an input color, it finds a name in the list which has the closest match.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on colornames