FLUTTER ECOSYSTEM

ggichure/hexcolor

一个将十六进制颜色引入 Dart 的 Flutter 插件 hexcolorPlugin

hexcolor 项目封面
Stars
17
Forks
7
最近推送(UTC)
2026年3月31日
项目状态
未归档
Griffins GitHub avatar
GITHUB User

Griffins ↗

语言Dart

技术话题

此仓库发布的插件

使用的依赖

依赖清单 5 项
  • flutter{"sdk":"flutter"}
  • flutter_web_plugins{"sdk":"flutter"}
  • lints开发依赖^6.0.0
  • test开发依赖^1.16.0
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

License: BSD 3 Pub.dev 213

hexcolor_example

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

Getting Started

sample usage

import 'package:hexcolor/hexcolor.dart';
  Text("Hello There!", style: TextStyle(color: HexColor("#009688"))),
        ElevatedButton(
          onPressed: () {
            setState(() {
              colorCode = Colors.teal.toHex();
            });
          },
          child: Text('Get Hex Color $colorCode'),
        ),
HexColor("#yourhex")

https://raw.githubusercontent.com/ggichure/hexcolor/HEAD/sample.png

"Buy Me A Coffee"