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"