Skip to content

ggichure/hexcolor

Repository files navigation

License: BSD 3 Pub.dev 213

hexcolor_example

how to use the hexcolor plugin.

hex color plugin allows you to add hex color codes to your flutter projects

Getting Started

sample usage

import 'package:hexcolor/hexcolor.dart';
                    Text(
                      'Running on: $_platformVersion\n',
                    style: TextStyle(color: HexColor("#f2f2f2")),
                  ),
                  Text(
                    "Hex From Material  $textColor",
                    style: TextStyle(color: ColorToHex(Colors.teal)),
                  ),
Hexcolor("#yourhex")

Color to hex

String textColor = ColorToHex(Colors.teal).toString();

"Buy Me A Coffee"