LinearGauge class

Inheritance

Constructors

LinearGauge({Key? key, double? start = 0, double? end = 100, double? steps = 0, bool? showLinearGaugeContainer = true, GaugeOrientation? gaugeOrientation = GaugeOrientation.horizontal, TextStyle? textStyle = const TextStyle(fontSize: 12.0, color: Color.fromARGB(255, 86, 86, 86), fontStyle: FontStyle.normal, fontWeight: FontWeight.normal), double? primaryRulersWidth = 1.0, double? primaryRulersHeight = 15.0, double? secondaryRulersHeight = 1.0, double? secondaryRulersWidth = 1.0, double? labelTopMargin = 0.0, Color? primaryRulerColor = Colors.black54, Color? secondaryRulerColor = Colors.grey, LinearGaugeBoxDecoration? linearGaugeBoxDecoration = const LinearGaugeBoxDecoration(), LabelStyle? labelStyle = const LabelStyle(), double? secondaryRulerPerInterval = 1.0, bool showSecondaryRulers = true, bool showPrimaryRulers = true, double? value = 0})
LinearGauge is a visualization of measurement widget with a linear scale values. Linear Gauge as rich sets of config parameters which can be modified as per requirement
const

Properties

end double?
end Sets the ending label of the LinearGauge Container
final
gaugeOrientation GaugeOrientation?
gaugeOrientation sets the LinearGauge orientation to horizontal or vertical
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelStyle LabelStyle?
labelStyle sets the styles of label using LabelStyle properties
final
labelTopMargin double?
labelTopMargin sets the margin from the top of the label
final
linearGaugeBoxDecoration LinearGaugeBoxDecoration?
linearGaugeBoxDecoration sets the styles of Container using LinearGaugeBoxDecoration decoration properties
final
primaryRulerColor Color?
primaryRulerColor sets the color of the ruler which is attached to labels
final
primaryRulersHeight double?
primaryRulersHeight set the Height of the Rulers which are attached to the labels
final
primaryRulersWidth double?
primaryRulersWidth set the width of the Rulers which are attached to the labels
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryRulerColor Color?
secondaryRulerColor sets the color of the ruler which are in the between of ruler attached to labels
final
secondaryRulerPerInterval double?
secondaryRulerPerInterval draw the ruler between primary rulers as per interval provided
final
secondaryRulersHeight double?
secondaryRulersHeight set the Height of the Rulers which are in the between of label Rulers
final
secondaryRulersWidth double?
secondaryRulersWidth set the width of the Rulers which are in the between of label Rulers
final
showLinearGaugeContainer bool?
showLinearGaugeContainer controls the LinearGauge Container render
final
showPrimaryRulers bool
showSecondaryRules sets the visibility of the primary rulers.
final
showSecondaryRulers bool
showSecondaryRules sets the visibility of the secondary rulers.
final
start double?
start Sets the starting label of the LinearGauge Container
final
steps double?
steps Sets the interval between label of the LinearGauge Container
final
textStyle TextStyle?
textStyle sets the Label text style of LinearGauge
final
value double?
linearGaugeBoxDecoration sets the styles of Container using LinearGaugeBoxDecoration decoration properties
final

Methods

createElement() LeafRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
createRenderObject(BuildContext context) RenderLinearGauge
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.
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
didUnmountRenderObject(covariant RenderObject renderObject) → void
A render object previously associated with this widget has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderObject.
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
updateRenderObject(BuildContext context, covariant RenderLinearGauge renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited