FSliderStyle.inherit constructor
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 = .bottomCenter,
- AlignmentGeometry tooltipThumbAnchor = .topCenter,
Creates a FSliderStyle that inherits its properties.
Implementation
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 = .bottomCenter,
AlignmentGeometry tooltipThumbAnchor = .topCenter,
}) : this(
activeColor: FVariants(
colors.primary,
variants: {
[.disabled]: colors.disable(colors.primary, colors.secondary),
},
),
inactiveColor: .all(colors.secondary),
thumbStyle: FSliderThumbStyle(
color: .all(colors.primaryForeground),
borderColor: FVariants(
colors.primary,
variants: {
[.disabled]: colors.disable(colors.primary),
},
),
focusedOutlineStyle: style.focusedOutlineStyle,
),
markStyle: FSliderMarkStyle(
tickColor: .all(colors.mutedForeground),
labelTextStyle: .all(typography.xs.copyWith(color: colors.mutedForeground)),
labelAnchor: labelAnchor,
labelOffset: labelOffset,
),
tooltipStyle: .inherit(colors: colors, typography: typography, style: style),
tooltipTipAnchor: tooltipTipAnchor,
tooltipThumbAnchor: tooltipThumbAnchor,
labelTextStyle: style.formFieldStyle.labelTextStyle,
descriptionTextStyle: style.formFieldStyle.descriptionTextStyle,
errorTextStyle: style.formFieldStyle.errorTextStyle,
descriptionPadding: descriptionPadding,
childPadding: childPadding,
);