gauge_indicator library

Classes

AnimatedRadialGauge
Animated RadialGauge widget.
CategoryLabelProvider
Returns a label from the matching LabelCategory or a numeric label if no matching category is available.
CirclePointer
GaugeAxis
GaugeAxisGradient
GaugeAxisStyle
GaugeAxisTransformer
GaugeAxisTween
GaugeBasicProgressBar
GaugeBorder
GaugeLabelProvider
Provides string labels for the RadialGauge.
GaugePointer
GaugePointerBorder
GaugePointerPosition
Describes the pointer position with anchor and offset.
GaugeProgressBar
GaugeRange
GaugeRoundedProgressBar
GaugeSegment
LabelCategory
Use with CategoryLabelProvider to define string labels for specific value ranges.
MapLabelProvider
Maps a numeric value to the label.
NeedlePointer
NullTween
This animation is used to disable property animation without affecting the logic already in use.
RadialGauge
Renders a radial gauge.
RadialGaugeLabel
A simple widget that uses the Text widget and the GaugeLabelProvider class to draw a value label for the RadialGauge widget.
RadialGaugeLayout
Defines the radial gauge layout. The layout is defined by the three rects and the radius.
RadialGaugeRenderBox
To optimize the gauge indicator widget calculations are split into two phases: size-related and paint-related. Layout-related can be made only on layout change and there is no need to redo them on each paint. Paint-related are calculations that are required to paint the gauge, For it to work the offset (provided to the paint method) needs to be provided.
TrianglePointer
ValueLabelProvider
Returns a numeric label for the provided value.
VertexDefinition

Enums

GaugePointerAnchor
Describes the position (anchor) of the gauge pointer.
GaugeProgressPlacement
Describes how the progress bar will be rendered. inside or over the axis segments.

Constants

degrees2Radians → const double
radians2Degrees → const double

Functions

applyAspectRatio(Rect src, double aspectRatio) Size
calculateAxisPath(Rect rect, {double from = 0.0, double to = 1.0, double degrees = 180.0, double thickness = 10.0}) Path
calculateRadiusArcPath(Rect rect, {required Radius cornerRadius, double from = 0.0, double to = 1.0, double degrees = 180.0, double thickness = 10.0, Canvas? canvas}) Path
If a canvas is specified during debugging, the vertices of the arc will be drawn
calculateRoundedArcPath(Rect rect, {double from = 0.0, double to = 1.0, double degrees = 180.0, double thickness = 10.0}) Path
flattenSegments(List<GaugeSegment> segments, {bool colorBlending = true}) Iterable<GaugeSegment>
Split overlapping segments into non-overlapping.
getArcAngle(double length, double radius) double
Returns arc length in radians
getPointOnCircle(Offset offset, double angle, double radius) Offset
getSagitta(double degrees, double radius) double
Calculate circle segment sagitta.
lerpDouble(double begin, double end, double t) double
rotateOverOrigin({required Matrix4 matrix, required Offset origin, required double rotation}) Matrix4
Rotates over origin by the given rotation in radians.
roundedPath(List<VertexDefinition> vertices, double radiusAll) Path
roundedPoly(List<VertexDefinition> vertices, double radiusAll) Path
Returns a Path that describes the rounded polygon.
toDegrees(double radians) double
Convert radians to degrees.
toRadians(double degrees) double
Convert degrees to radians.

Typedefs

GaugeLabelBuilder = Widget Function(BuildContext context, Widget? child, double value)
ToLabel = String Function(double)