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

kdgaugeview 封面
套件詳情v1.0.5

kdgaugeview

KDGaugeView 是一個簡單且可自訂的 Flutter 儀表控制項

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
88
喜歡數
25
Pub 分數
140

安裝套件

flutter pub add kdgaugeview

套件介紹

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

KDGaugeView 是一個輕量級且可自訂的 Flutter 量表小工具,專為在圓形或半圓形範圍內視覺化表示資料值而設計。它支援平滑動畫、可自訂的顏色、標籤和指針樣式,非常適合用於儀表板、計量器和效能指標。此套件可在所有主要平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)上相容使用。透過簡單的 API 和彈性配置選項,KDGaugeView 讓開發者能以最少的努力建立優雅且具互動性的量表。

適用情境

  • 儀表板小部件
  • 效能監控
  • 燃油量指示器
  • 溫度顯示
  • 進度追蹤

主要特色

  • 可自訂的指針
  • 動畫值過渡
  • 支援圓形與半圓形版面配置
  • 可設定的顏色與標籤
  • 跨平台相容性
  • 與 Flutter UI 的輕鬆整合

適合對象

  • 應用中的資料可視化
  • 即時指標顯示
  • 使用者友善的儀表板
  • 行動與桌面應用程式
  • 尋求簡單儀表元件的開發者

使用建議

  • 僅限基本儀錶類型
  • 不支援多針頭的內建支援
  • 需要手動處理複雜的資料更新
  • 不適合高度動態或跨尺度的儀表

原始 README

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

KdGaugeViewFlutter

KDGaugeView is a simple and customizable gauge control for Android inspired by KdGaugeView

The source code is 100% Dart.

pub package License

Motivation

I need some clean Guage view for my Flutter application.

Getting started

Installing

Add this to your package's pubspec.yaml file:

This library is posted in pub.dev

pubspec.yaml
dependencies:  
	kdgaugeview: ^1.0.4

Usage

After Importing this library, you can directly use this view in your Widget tree

import  'package:kdgaugeview/kdgaugeviewflutter.dart';
 GlobalKey<KdGaugeViewState> key = GlobalKey<KdGaugeViewState>();
KdGaugeView(
    key: key,
    minSpeed: 0,
    maxSpeed: 180,
    speed: 70,
    animate: true,
)

Update the speed of the Gauge View using this method

key.currentState.updateSpeed(120, animate: true,duration: Duration(milliseconds: 400));

Customization

Depending on your view you may want to tweak the UI. For now you can these custom attributes

Property Type Description
'speed' double Initial speed for the Gauge
'speedTextStyle' TextStyle Text Style for Speed Text

Screenshots

alt text        alt text

Author

  • Saurabh K Sharma - GIT

    I am very new to open source community. All suggestion and improvement are most welcomed.

Contributing

  1. Fork it (https://github.com/sorbh/kdgaugeViewflutter/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

所屬分類

原始碼儲存庫

使用此套件的專案