switchColors static method
Implementation
static MiuixSwitchColors switchColors(BuildContext context) {
final c = MiuixTheme.of(context).colors;
return MiuixSwitchColors(
checkedThumbColor: c.onPrimary,
uncheckedThumbColor: c.onSecondary,
disabledCheckedThumbColor: c.disabledOnPrimary,
disabledUncheckedThumbColor: c.disabledOnSecondary,
checkedTrackColor: c.primary,
uncheckedTrackColor: c.secondary,
disabledCheckedTrackColor: c.disabledPrimary,
disabledUncheckedTrackColor: c.disabledSecondary,
);
}