MiniPlayerThemeData.defaultTheme constructor
MiniPlayerThemeData.defaultTheme(
- BuildContext context
Implementation
factory MiniPlayerThemeData.defaultTheme(BuildContext context) {
final theme = Theme.of(context);
return MiniPlayerThemeData(
iconColor: theme.colorScheme.onSurface,
backgroundColor: theme.colorScheme.background,
thumbnailBorderColor: Colors.white.withOpacity(0.01),
topBorderColor: theme.colorScheme.onSurface.withOpacity(0.1),
titleStyle: theme.textTheme.labelMedium!.copyWith(color: theme.colorScheme.onSurface),
secondaryTitleStyle: theme.textTheme.labelSmall?.copyWith(color: theme.colorScheme.primary),
);
}