搜尋分類、套件與程式碼儲存庫

hue_rotation 封面
套件詳情v2.0.1

hue_rotation

變更任何具有顏色的 widget 的顏色。類似於 SwiftUI 的色相旋轉。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
428
喜歡數
29
Pub 分數
160

安裝套件

flutter pub add hue_rotation

套件介紹

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

hue_rotation 套件允許開發者動態調整任何具有色彩的組件的色相,類似於 SwiftUI 的色相旋轉效果。它提供了一種簡單的方法來透過旋轉色相值來修改色彩,進而實現著色或色彩偏移等視覺效果,而不需改變原始色彩定義。這對於在跨多個平台的 Flutter 應用中建立動態主題、互動式色彩調整或動畫色彩過渡特別有用。

適用情境

  • 應用動態顏色效果
  • 創建主題介面
  • 動畫顏色過渡
  • 實現顏色濾鏡
  • 自定義小部件外觀
  • 增強視覺反饋

主要特色

  • 色相旋轉變換
  • 支援所有 Flutter 平台
  • 與現有小部件的輕鬆整合
  • 無對外部資源的依賴
  • 所需的樣板程式碼最少
  • 適用於任何基於顏色的元件

適合對象

  • 尋求視覺多樣性的UI設計師
  • 開發互動式顏色工具的開發者
  • 需要動態主題的應用程式
  • 關於色彩理論的教育專案
  • 原型設計色彩豐富的介面

使用建議

  • 僅限色調調整
  • 不會影響飽和度或亮度
  • 可能需要在大型小部件樹上進行性能測試
  • 最佳搭配非必要之裝飾元素
  • 不適合超出色相的精確色彩控制

原始 README

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

Getting Started

Installation

Example Code

About

  • This widget performs a hue rotation on the child's color:
  • Degrees defines the number of degrees around the color circle the color will be adjusted.
  • A value of 0 leaves the color unchanged.
  • A value of 180 paints the complementary color.
  • The manipulated color in the example is Colors.blue.

HueRotation in Action

Screenrecording Screenrecording

Todo

  • Add feature requests
  • Merge your pull requests

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。