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