hexcolorname 0.0.9 copy "hexcolorname: ^0.0.9" to clipboard
hexcolorname: ^0.0.9 copied to clipboard

A Flutter plugin for Color's Name by Color Code. Supports iOS, Android, web, Windows, macOS, and Linux.

hexcolorname #

pub package

A Flutter plugin for retrieving color names based on color codes.

Features #

  • Retrieve color names for given color codes.
  • Supports various color modes such as complementary color, inverted color, and text-inverted color.
  • Works on iOS, Android, web, Windows, macOS, and Linux.

Installation #

Add hexcolorname as a dependency in your pubspec.yaml file:

dependencies:
  hexcolorname: ^0.0.8

Usage #

To use this package, import it into your Dart code:

import 'package:hexcolorname/hexcolorname.dart';

Then, you can use the HexColorText widget to display color names:

const String _color = '#A2B9C2';

void main() => runApp(
      const MaterialApp(
        home: Material(
          child: Center(
              child: HexColorText(
                  mode: ColorMode.complementarycolor, hexColor: _color)),
        ),
      ),
    );

See the example app for more complex usage examples.

Documentation #

For more detailed documentation, check out the API reference.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

3
likes
110
pub points
23%
popularity

Publisher

verified publisherkrishnavishwakarma.in

A Flutter plugin for Color's Name by Color Code. Supports iOS, Android, web, Windows, macOS, and Linux.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio, flutter, freezed_annotation, json_annotation, logger, retrofit

More

Packages that depend on hexcolorname