FSliderStyle class
A slider's style.
- Inheritance
-
- Object
- FFormFieldStyle
- FLabelStyle
- FSliderStyle
- Implemented types
- Available extensions
Constructors
-
FSliderStyle.new({required FWidgetStateMap<
Color> activeColor, required FWidgetStateMap<Color> inactiveColor, required FSliderThumbStyle thumbStyle, required FSliderMarkStyle markStyle, required FTooltipStyle tooltipStyle, required FWidgetStateMap<TextStyle> labelTextStyle, required FWidgetStateMap<TextStyle> descriptionTextStyle, required TextStyle errorTextStyle, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(4)), double crossAxisExtent = 8, double? thumbSize, AlignmentGeometry tooltipTipAnchor = Alignment.bottomCenter, AlignmentGeometry tooltipThumbAnchor = Alignment.topCenter, EdgeInsetsGeometry labelPadding = const EdgeInsets.only(bottom: 5), EdgeInsetsGeometry descriptionPadding = EdgeInsets.zero, EdgeInsetsGeometry errorPadding = const EdgeInsets.only(top: 5), EdgeInsetsGeometry childPadding = EdgeInsets.zero}) - Creates a FSliderStyle.
- FSliderStyle.inherit({required FColors colors, required FTypography typography, required FStyle style, required AlignmentGeometry labelAnchor, required double labelOffset, required EdgeInsetsGeometry descriptionPadding, required EdgeInsetsGeometry childPadding, AlignmentGeometry tooltipTipAnchor = Alignment.bottomCenter, AlignmentGeometry tooltipThumbAnchor = Alignment.topCenter})
- Creates a FSliderStyle that inherits its properties.
Properties
-
activeColor
→ FWidgetStateMap<
Color> -
The slider's active track colors.
final
- borderRadius → BorderRadius
-
The slider's border radius.
final
- childPadding → EdgeInsetsGeometry
-
The child's padding.
finalinherited
- crossAxisExtent → double
-
The slider's cross-axis extent. Defaults to 8.
final
- descriptionPadding → EdgeInsetsGeometry
-
The description's padding.
finalinherited
-
descriptionTextStyle
→ FWidgetStateMap<
TextStyle> -
The description's text style.
finalinherited
- errorPadding → EdgeInsetsGeometry
-
The error's padding.
finalinherited
- errorTextStyle → TextStyle
-
The error's text style.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inactiveColor
→ FWidgetStateMap<
Color> -
The slider's inactive track colors.
final
- labelPadding → EdgeInsetsGeometry
-
The label's padding.
finalinherited
-
labelTextStyle
→ FWidgetStateMap<
TextStyle> -
The label's text style.
finalinherited
- markStyle → FSliderMarkStyle
-
The slider marks' style.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbSize → double
-
The thumb's size, inclusive of . Defaults to
25
on touch platforms and20
on non-touch platforms.final - thumbStyle → FSliderThumbStyle
-
The slider thumb's style.
final
- tooltipStyle → FTooltipStyle
-
The tooltip's style.
final
- tooltipThumbAnchor → AlignmentGeometry
-
The anchor of the thumb to which the tooltipTipAnchor is aligned to.
final
- tooltipTipAnchor → AlignmentGeometry
-
The anchor of the tooltip to which the tooltipThumbAnchor is aligned to.
final
Methods
-
copyWith(
{FWidgetStateMap< Color> ? activeColor, FWidgetStateMap<Color> ? inactiveColor, BorderRadius? borderRadius, double? crossAxisExtent, double? thumbSize, FSliderThumbStyle? thumbStyle, FSliderMarkStyle? markStyle, FTooltipStyle? tooltipStyle, AlignmentGeometry? tooltipTipAnchor, AlignmentGeometry? tooltipThumbAnchor, EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? descriptionPadding, EdgeInsetsGeometry? errorPadding, EdgeInsetsGeometry? childPadding, FWidgetStateMap<TextStyle> ? labelTextStyle, FWidgetStateMap<TextStyle> ? descriptionTextStyle, TextStyle? errorTextStyle}) → FSliderStyle -
Returns a copy of this FSliderStyle with the given properties replaced.
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
transform(
T function(T)) → T -
Available on T, provided by the FTransformables extension
Transform thisT
using the givenfunction
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited