hexcolor 3.0.1 hexcolor: ^3.0.1 copied to clipboard
Brings HexColor for your dart and flutter projects, convert material colors to hex colors
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();