ControlsThemeData.defaultTheme constructor
ControlsThemeData.defaultTheme(
- BuildContext context
Implementation
factory ControlsThemeData.defaultTheme(BuildContext context) {
final theme = Theme.of(context);
return ControlsThemeData(
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: 12),
activeTrackColor: theme.colorScheme.primary,
inactiveTrackColor: theme.colorScheme.onBackground.withOpacity(0.2),
thumbColor: theme.colorScheme.primary,
),
playNextButtonBackgroundColor: Colors.blue.withOpacity(0.75),
playNextButtonProgressColor: Colors.blue,
);
}