checkboxColors static method

MiuixCheckboxColors checkboxColors(
  1. BuildContext context
)

Implementation

static MiuixCheckboxColors checkboxColors(BuildContext context) {
  final c = MiuixTheme.of(context).colors;
  return MiuixCheckboxColors(
    checkedForegroundColor: c.onPrimary,
    uncheckedForegroundColor: c.secondary,
    disabledCheckedForegroundColor: c.disabledOnPrimary,
    disabledUncheckedForegroundColor: c.disabledOnPrimary,
    checkedBackgroundColor: c.primary,
    uncheckedBackgroundColor: c.secondary,
    disabledCheckedBackgroundColor: c.disabledPrimary,
    disabledUncheckedBackgroundColor: c.disabledSecondary,
  );
}