CustomSingleSlider class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CustomSingleSlider
- Available Extensions
Constructors
-
CustomSingleSlider({Key? key, double initValue = 0, double maxValue = 1, double minValue = 0, double thumbSize = 6, Color thumbColor = Colors.blue, Duration thumbAnimationDuration = const Duration(milliseconds: 200), bool isThumbAnimated = true, double trackIndent = 3, double trackHeight = 3, Color trackColor = Colors.grey, Color trackActiveColor = Colors.blue, List<
Color> ? trackActiveGradientColors, List<double> ? trackActiveGradientStops, AlignmentGeometry trackActiveGradientBegin = Alignment.centerLeft, AlignmentGeometry trackActiveGradientEnd = Alignment.centerRight, TileMode trackActiveGradientTileMode = TileMode.clamp, bool floatingMark = true, double floatingMarkWidth = 1, double floatingMarkIndent = 3, Color floatingMarkColor = Colors.blue, dynamic sliderValueMethod(double value)?}) -
const
Properties
- floatingMark → bool
-
Whether to enable the auxiliary hover function. It only works when using Apple Pecile.
final
- floatingMarkColor → Color
-
The color of the floating mark.
final
- floatingMarkIndent → double
-
Indentation of floating mark.
final
- floatingMarkWidth → double
-
The width of the floating mark.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initValue → double
-
The initial value of the sliding track.
The initial value range of initValue is 0.0 to 1.0.
final
- isThumbAnimated → bool
-
Whether thumb block is animated.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxValue → double
-
The maxValue that the sliding rail can slide.
The maxValue ranges from 0.0 to 1.0, and it is greater than or equal to the minValue.
final
- minValue → double
-
The minValue that the sliding track can slide.
The minValue ranges from 0.0 to 1.0, and it is less than or equal to the maxValue.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sliderValueMethod → (dynamic Function(double value)?)
-
Callback function for the current sliding value of the sliding track.
final
- thumbAnimationDuration → Duration
-
Thumb block animation time.
final
- thumbColor → Color
-
The color of the thumb block.
final
- thumbSize → double
-
The size of the thumb slider.
final
- trackActiveColor → Color
-
The active color of the slider track.
final
- trackActiveGradientBegin → AlignmentGeometry
-
Active track fade start orientation.
final
-
trackActiveGradientColors
→ List<
Color> ? -
A collection of active gradient colors for the slide track.
final
- trackActiveGradientEnd → AlignmentGeometry
-
Active track fade end orientation.
final
-
trackActiveGradientStops
→ List<
double> ? -
Active track gradient color ratio.
final
- trackActiveGradientTileMode → TileMode
-
Active track gradient tile mode.
final
- trackColor → Color
-
The color of the slide track.
final
- trackHeight → double
-
Height of sliding track.
final
- trackIndent → double
-
Indentation of sliding track.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CustomSingleSlider> -
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