sliderColors static method

MiuixSliderColors sliderColors(
  1. BuildContext context
)

Implementation

static MiuixSliderColors sliderColors(BuildContext context) {
  final c = MiuixTheme.of(context).colors;
  return MiuixSliderColors(
    foregroundColor: c.primary,
    disabledForegroundColor: c.disabledPrimarySlider,
    backgroundColor: c.sliderBackground,
    disabledBackgroundColor: c.disabledSecondary,
    thumbColor: c.onPrimary,
    disabledThumbColor: c.disabledOnPrimary,
    keyPointColor: c.sliderKeyPoint,
    keyPointForegroundColor: c.sliderKeyPointForeground,
  );
}