KdGaugeView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- KdGaugeView
Constructors
-
KdGaugeView({GlobalKey<
State< ? key, double speed = 0, TextStyle speedTextStyle = const TextStyle(color: Colors.black, fontSize: 60, fontWeight: FontWeight.bold), String unitOfMeasurement = 'Km/Hr', TextStyle unitOfMeasurementTextStyle = const TextStyle(color: Colors.black, fontSize: 30, fontWeight: FontWeight.w600), required double minSpeed, required double maxSpeed, TextStyle minMaxTextStyle = const TextStyle(color: Colors.black, fontSize: 20), List<StatefulWidget> >double> alertSpeedArray = const [], List<Color> alertColorArray = const [], double gaugeWidth = 10, Color baseGaugeColor = Colors.transparent, Color inactiveGaugeColor = Colors.black87, Color activeGaugeColor = Colors.green, double innerCirclePadding = 30, Color divisionCircleColors = Colors.blue, Color subDivisionCircleColors = Colors.blue, bool animate = false, Duration duration = const Duration(milliseconds: 400), int fractionDigits = 0, Widget? child, Gradient? activeGaugeGradientColor})
Properties
- activeGaugeColor → Color
-
final
- activeGaugeGradientColor → Gradient?
-
final
-
alertColorArray
→ List<
Color> -
final
-
alertSpeedArray
→ List<
double> -
final
- animate → bool
-
final
- baseGaugeColor → Color
-
final
- child → Widget?
-
final
- divisionCircleColors → Color
-
final
- duration → Duration
-
final
- fractionDigits → int
-
final
- gaugeWidth → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inactiveGaugeColor → Color
-
final
- innerCirclePadding → double
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxSpeed → double
-
final
- minMaxTextStyle → TextStyle
-
final
- minSpeed → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → double
-
final
- speedTextStyle → TextStyle
-
final
- subDivisionCircleColors → Color
-
final
- unitOfMeasurement → String
-
final
- unitOfMeasurementTextStyle → TextStyle
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → KdGaugeViewState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited