SliderThemeData.standard constructor
SliderThemeData.standard(
- FluentThemeData theme
Implementation
factory SliderThemeData.standard(FluentThemeData theme) {
final def = SliderThemeData(
thumbColor: ButtonState.resolveWith(
(states) => ButtonThemeData.checkedInputColor(theme, states),
),
activeColor: ButtonState.resolveWith(
(states) => ButtonThemeData.checkedInputColor(theme, states),
),
inactiveColor: ButtonState.resolveWith((states) {
if (states.isDisabled) {
return theme.resources.controlStrongFillColorDisabled;
} else {
return theme.resources.controlStrongFillColorDefault;
}
}),
margin: EdgeInsets.zero,
useThumbBall: true,
labelBackgroundColor: theme.resources.controlSolidFillColorDefault,
labelForegroundColor: theme.resources.textFillColorPrimary,
trackHeight: ButtonState.all(3.75),
);
return def;
}