defaultColors static method

MiuixProgressIndicatorColors defaultColors(
  1. BuildContext context
)

返回线性与圆形进度指示器的默认颜色。

Implementation

static MiuixProgressIndicatorColors defaultColors(BuildContext context) {
  final colors = MiuixTheme.of(context).colors;
  return MiuixProgressIndicatorColors(
    foregroundColor: colors.primary,
    disabledForegroundColor: colors.disabledPrimarySlider,
    backgroundColor: colors.secondaryContainer,
  );
}