speedometer_chart 1.0.8

SDKflutter
Platformandroidioswindowslinuxmacosweb

A library of velocity gauge charts for Flutter, fully customizable.

speedometer_chart

A library of velocity gauge charts for Flutter.

Install

Add the following dependency to your pubspec.yaml file:

dependencies:
    speedometer_chart: ^1.0.8

Import it in your dart code:

import 'package:speedometer_chart/speedometer_chart.dart';

Usage

SpeedometerChart(
  dimension: 200,
  minValue: 0,
  maxValue: 100,
  value: 75,
  graphColor: [Colors.red, Colors.yellow, Colors.green],
  pointerColor: Colors.black,
)

Property

The SpeedometerChart widget accepts the following properties:

KeyDescriptionRequiredTypeDefault
dimensionThe size of the speedometer chart.falsedouble600
minValueThe size of the speedometer chart.falsedouble0
maxValueThe minimum value of the chart.falsedouble100
valueThe current value of the chart.truedouble
minWidgetThe Widget to display the minimum value .falseWidget?null
maxWidgetThe Widget to display the maximum value.falseWidget?null
graphColorA list of colors for the chart gradient.falseList<Color>[Colors.red, Colors.yellow, Colors.green]
hasIconPointerDefine the image of the pointer.falsebooltrue
pointerColorThe color of the pointer.falseColorColors.black
valueWidgetThe Widget to display the current value.falseWidget?null
titleThe title of the chart.falseString?null
titleMarginThe title margin of the chart.falsedouble10
animationDurationThe duration of the chart animation.falseint2000
hasTickSpaceDefine if the tick arc has white space.falseboolfalse

Constructor

The SpeedometerChart also this constructor:

KeyDescription
tickReplace the linear gradient with a tick visualization.

Feel free to customize the properties based on your specific needs.