搜尋套件、儲存庫與 APP 分類

flutter_circle_color_picker 封面
套件詳情v0.3.0

flutter_circle_color_picker

一個漂亮的圓形顏色選擇器,用於 Flutter,可選擇 HSL 顏色。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
299
喜歡數
71
Pub 分數
150

安裝套件

flutter pub add flutter_circle_color_picker

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個視覺上吸引人的圓形顏色選擇器,適用於 Flutter,允許使用者使用 HSL 顏色模型選擇顏色。採用流暢的互動和乾淨的設計,可無縫整合到需要直觀顏色選擇的應用程式中。此選擇器支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,具有高度的多功能性。非常適合設計工具、主題自訂器,或任何需要使用者透過自然的圓形介面選擇顏色的應用。

適用情境

  • 設計應用程式中的顏色選擇
  • 主題自訂介面
  • 創意繪畫或繪畫工具
  • 使用者個人檔案色彩偏好
  • 互動式使用者介面原型設計

主要特色

  • HSL 顏色模型支援
  • 基於拖動的圓形顏色選擇
  • 跨平台相容性
  • 流暢的動畫和過渡
  • 可自定外觀
  • 響應式觸控和指針輸入

適合對象

  • 開發創意或設計導向應用程式的開發者
  • 需要直覺色彩選擇的應用程式
  • 跨平台應用程式,具有一致的使用者介面
  • UI/UX 設計師整合色彩工具

使用建議

  • 僅限 HSL 顏色空間(不包含 RGB 或其他模型)
  • 可能需要額外的樣式以保持深色模式的一致性
  • 未針對非常大的顏色調色板進行優化
  • 依賴外部相依性進行平台特定的渲染

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_circle_color_picker

pub package

A beautiful circle color picker for flutter. Online Demo

Light theme Dark Theme
sample light theme sample dark theme

Usage

...
        body: Center(
          child: CircleColorPicker(
            initialColor: Colors.blue,
            onChanged: (color) => print(color),
            size: const Size(240, 240),
            strokeWidth: 4,
            thumbSize: 36,
          ),
        ),
...

API

  /// Called during a drag when the user is selecting a color.
  ///
  /// This callback called with latest color that user selected.
  final ValueChanged<Color> onChanged;

  /// Called when drag ended.
  ///
  /// This callback called with latest color that user selected.
  final ValueChanged<Color>? onEnded;

  /// An object to controll picker color dynamically.
  ///
  /// Provide initialColor if needed.
  final CircleColorPickerController? controller;

  /// The size of widget.
  /// Draggable area is thumb widget is included to the size,
  /// so circle is smaller than the size.
  ///
  /// Default value is 280 x 280.
  final Size size;

  /// The width of circle border.
  ///
  /// Default value is 2.
  final double strokeWidth;

  /// The size of thumb for circle picker.
  ///
  /// Default value is 32.
  final double thumbSize;

  /// Text style config
  ///
  /// Default value is Black
  final TextStyle textStyle;

  /// Widget builder that show color code section.
  /// This functions is called every time color changed.
  ///
  /// Default is Text widget that shows rgb strings;
  final ColorCodeBuilder colorCodeBuilder;

所屬分類

原始碼儲存庫

使用此套件的專案