BccmControlsThemeData.defaultTheme constructor

BccmControlsThemeData.defaultTheme(
  1. BuildContext context
)

Implementation

factory BccmControlsThemeData.defaultTheme(BuildContext context) {
  final theme = Theme.of(context);
  return BccmControlsThemeData(
    primaryColor: theme.colorScheme.primary,
    iconColor: Colors.white,
    durationTextStyle: theme.textTheme.labelSmall?.copyWith(color: theme.colorScheme.onBackground),
    settingsListBackgroundColor: theme.colorScheme.background,
    settingsListTextStyle: theme.textTheme.labelMedium?.copyWith(color: theme.colorScheme.onSurface),
    fullscreenTitleStyle: theme.textTheme.labelLarge?.copyWith(color: theme.colorScheme.onBackground),
    progressBarTheme: SliderThemeData(
      trackHeight: 2,
      thumbShape: const RoundSliderThumbShape(enabledThumbRadius: 6),
      overlayShape: const RoundSliderOverlayShape(overlayRadius: 14),
      activeTrackColor: theme.colorScheme.primary,
      inactiveTrackColor: theme.colorScheme.onBackground.withOpacity(0.2),
      thumbColor: theme.colorScheme.primary,
    ),
    playNextButtonBackgroundColor: Colors.blue.withOpacity(0.75),
    playNextButtonProgressColor: Colors.blue,
  );
}