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

outdated

Flutter Package to convert color hex code to color name

hexcolorname #

pub package

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

Usage #

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

Example #

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

///
/// complementary Mode will return the complementary color of the given color #C2ABA2
/// inverted Mode will return the inverted color of the given color #5D463D
/// textinverted Mode will return the Black / White color of the given color #000000 for eg. for light color with will return black and for dark color will return white
///
const String _color = '#A2B9C2';

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

See the example app for more complex examples.

3
likes
0
points
24
downloads

Publisher

verified publisherkrishnavishwakarma.in

Weekly Downloads

Flutter Package to convert color hex code to color name

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on hexcolorname