v1.0.1pretty_gauge
适用于 Flutter 的完全可自定义仪表盘小部件,支持多个分段、颜色以及用于显示当前值和文本的可自定义样式
22喜欢 6900近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个 Flutter 包,用于自定义仪表盘,支持多种分段、颜色以及可自定义的样式,以显示当前值和文本。
{"sdk":"flutter"}{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
Fully customizable Gauge widget for Flutter
https://github.com/JErazo7/gauge/raw/master/GaugeExample.jpgIn your pubspec.yaml, add the following dependency
dependencies:
pretty_gauge: 1.0.0
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)),
),
This project is licensed under the BSD 2-Clause license - see the LICENSE file for details