搜索插件、代码仓与 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

所属分类

源码仓库

使用此插件的项目