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

circular 封面
套件詳情v0.0.5

circular

Flutter 套件,用於在圓形滑塊中選擇和顯示資料,讓處理特定範圍內的值變得輕鬆

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
93
喜歡數
29
Pub 分數
140

安裝套件

flutter pub add circular

套件介紹

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

圓形套件是一個Flutter程式庫,專為建立和管理圓形滑桿而設計,以便在定義範圍內直觀地選擇值。它讓開發者能夠以視覺上吸引人的圓形格式顯示和選擇資料,非常適合用於音量控制、角度選擇器或百分比輸入等情境。該套件支援多個平台,包括Android、iOS、Web、macOS、Windows和Linux,確保跨裝置行為一致。透過可自訂外觀與順暢的互動,它簡化了將圓形輸入機制整合至Flutter應用程式的過程。

適用情境

  • 在360度範圍內調整數值
  • 為亮度或音量等設定創建直觀的使用者介面
  • 設計互動式儀表板
  • 實現角度或百分比選擇器
  • 使用視覺反饋建構自訂表單輸入

主要特色

  • 具有平滑旋轉的圓形滑塊
  • 可設定的範圍與步距值
  • 跨平台相容性
  • 可自定樣式與顏色
  • 內建的值變更回呼
  • 響應式觸控與拖曳支援

適合對象

  • UI 設計師尋求視覺輸入元件
  • 開發控制面板或設定介面的開發者
  • 需要非線性值選擇的應用程式
  • 針對多個平台且具有一致使用者體驗的專案
  • 教育或互動應用程式

使用建議

  • 可能需要額外的邏輯來實現精確的值映射
  • 在低階設備上,複雜動畫的效能可能會有所差異
  • 內建驗證功能有限,僅限於範圍約束
  • 未針對高頻率更新進行優化,且未啟用節流

原始 README

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

Circular

Features

  • picking values in specific range
  • displaying values in a a circular slider

Getting started

add the package
flutter pub add circular
import the package
import 'package:circular/circular.dart';

Usage

Circular slider
CircularSlider(
decoration: BoxDecoration(
    borderRadius: BorderRadius.circular(200),
    boxShadow: const [
      BoxShadow(
          offset: Offset(-10, -10),
          color: Colors.white,
          blurRadius: 20,
          spreadRadius: 1),
      BoxShadow(
          offset: Offset(10, 10),
          color: Color.fromARGB(255, 158, 158, 158),
          blurRadius: 20,
          spreadRadius: 1)
    ]),
maxValue: 100,
radius:100, 
child: Text(
  value.toString(),
  style: TextStyle(fontSize: 30),
),
color: Color(0xffEEEEEE),
sliderColor: Color(0xff62CBDA),
unSelectedColor: Color(0xffD7DEE7),
onDrag: (value) {
  setState(() {
    this.value = value;
  });
},
),
Circular Viewer
CircularViewer(
  decoration: BoxDecoration(
      borderRadius: BorderRadius.circular(200),
      boxShadow: const [
        BoxShadow(
            offset: Offset(-10, -10),
            color: Colors.white,
            blurRadius: 20,
            spreadRadius: 1),
        BoxShadow(
            offset: Offset(10, 10),
            color: Color.fromARGB(255, 158, 158, 158),
            blurRadius: 20,
            spreadRadius: 1)
      ]),
  value: 50,
  maxValue: 100,
  radius: 100,
  textStyle: TextStyle(fontSize: 30),
  color: Color(0xffEEEEEE),
  sliderColor: Color(0xff62CBDA),
  unSelectedColor: Color(0xffD7DEE7),
)

check out the full example

Additional information

story

after I made the the magic circle I decided to make it useful so I made this package

Contributing

Contributions are always welcome!

License

MIT LICENSE

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。