colornames 0.1.0 copy "colornames: ^0.1.0" to clipboard
colornames: ^0.1.0 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.

example/lib/main.dart

import 'package:colornames/colornames.dart';
import 'package:flutter/material.dart';

void main() {
  final MaterialAccentColor color = Colors.blueAccent;
  print(color.colorName); // Blue De France
  print(ColorNames.guess(Color(0xFFFF9E47))); // Yellow Orange
  print(0xf3f0f0.colorName); // Seashell
}
10
likes
140
pub points
90%
popularity

Publisher

verified publisherthexaib.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