FLUTTER ECOSYSTEM

JErazo7/gauge

一个 Flutter 包,用于自定义仪表盘,支持多种分段、颜色以及可自定义的样式,以显示当前值和文本。

仪表盘 项目封面
Stars
2
Forks
8
最近推送(UTC)
2022年1月20日
项目状态
未归档
Josue Erazo GitHub avatar
GITHUB User

Josue Erazo ↗

Senior Mobile & Applied AI Engineer | Flutter Expert | High-Impact IC ($4M+ Revenue Features) | Building Agentic Workflows

MGM Resorts InternationalEcuador
语言DartKotlinSwiftObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

pretty_gauge

Fully customizable Gauge widget for Flutter

https://github.com/JErazo7/gauge/raw/master/GaugeExample.jpg

Installing:

In your pubspec.yaml, add the following dependency

dependencies:
  pretty_gauge: 1.0.0

Example Usage:

import 'package:pretty_gauge/pretty_gauge.dart';

PrettyGauge(
    gaugeSize: 200,
    segments: [
        GaugeSegment('Low', 20, Colors.red),
        GaugeSegment('Medium', 40, Colors.orange),
        GaugeSegment('High', 40, Colors.green),
    ],
    currentValue: 46,
    displayWidget: Text('Fuel in tank', style: TextStyle(fontSize: 12)),
),

Features:

  • Fully featured Gauge widget that is built from scratch
  • Can have any number of segments in the Gauge with different segment length and colors
  • Gauge can have any dimension (square dimension only) with any minimum and maximum value
  • Needle color can be customized
  • Display and Value widget can be customized, so that you can display what you want on the Gauge
  • Can turn on/off markers that display Min and Max value on the Gauge. You can even style these markers!

License:

This project is licensed under the BSD 2-Clause license - see the LICENSE file for details