RulerWidget class

Inheritance

Constructors

RulerWidget({Key? key, required double height, required int largeScaleBarsInterval, required int smallScaleBarsInterval, required Color scaleBackgroundColor, required Color barsColor, Widget indicatorWidget = const SizedBox(), int lowerIndicatorLimit = 0, int lowerMidIndicatorLimit = 0, int upperMidIndicatorLimit = 0, int upperIndicatorLimit = 0, Color inRangeBarColor = Colors.black, Color behindRangeBarColor = Colors.black, Color outRangeBarColor = Colors.black, ScrollController? scrollController, Axis axis = Axis.horizontal})

Properties

axis Axis
Scale to be horizontal or vertical ,by default horizontal
final
barsColor Color
color of bars on scale largeScaleBarsInterval and smallScaleBarsInterval
final
behindRangeBarColor Color
color between lowerMidIndicatorLimit and lowerIndicatorLimit bars of scale (Optional)
final
hashCode int
The hash code for this object.
no setterinherited
height double
height of scale if horizontal or width of scale if vertical
final
indicatorWidget Widget
Custom Indicator over bars on scale
getter/setter pair
inRangeBarColor Color
color between lowerMidIndicatorLimit and upperMidIndicatorLimit bars of scale
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
largeScaleBarsInterval int
total visible numbers on scale
getter/setter pair
lowerIndicatorLimit int
starting number on scale to show marker indicatorWidget
getter/setter pair
lowerMidIndicatorLimit int
mid starting number on scale
getter/setter pair
outRangeBarColor Color
color between upperMidIndicatorLimit and upperIndicatorLimit bars of scale (Optional)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleBackgroundColor Color
color of scale
getter/setter pair
scrollController ScrollController?
final
smallScaleBarsInterval int
number of small bars b/w two largeScaleBarsInterval on scale
getter/setter pair
upperIndicatorLimit int
ending number on scale to show marker indicatorWidget
final
upperMidIndicatorLimit int
mid ending number on scale
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _RulerWidgetState
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