PlayerControlsTheme class

Theme configuration for player controls. Allows easy customization without rebuilding UI.

Constructors

PlayerControlsTheme({Color primaryColor = Colors.blue, Color backgroundColor = Colors.black54, Color iconColor = Colors.white, Color textColor = Colors.white, Color progressBarColor = Colors.blue, Color progressBarBackgroundColor = Colors.white30, double mainIconSize = 60, double secondaryIconSize = 40, double progressBarHeight = 3, double borderRadius = 8, TextStyle? timeTextStyle, TextStyle? buttonTextStyle, bool autoHideControls = true, Duration autoHideDuration = const Duration(seconds: 3), Duration animationDuration = const Duration(milliseconds: 300), double controlsBackgroundOpacity = 0.54})
const
PlayerControlsTheme.brand({required Color primaryColor, Brightness brightness = Brightness.dark})
Create a custom theme with specific brand colors
factory
PlayerControlsTheme.dark()
Create a dark theme
factory
PlayerControlsTheme.light()
Create a light theme
factory

Properties

animationDuration Duration
final
autoHideControls bool
final
autoHideDuration Duration
final
backgroundColor Color
final
borderRadius double
final
buttonTextStyle TextStyle?
final
controlsBackgroundOpacity double
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color
final
mainIconSize double
final
primaryColor Color
final
progressBarBackgroundColor Color
final
progressBarColor Color
final
progressBarHeight double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryIconSize double
final
textColor Color
final
timeTextStyle TextStyle?
final

Methods

copyWith({Color? primaryColor, Color? backgroundColor, Color? iconColor, Color? textColor, Color? progressBarColor, Color? progressBarBackgroundColor, double? mainIconSize, double? secondaryIconSize, double? progressBarHeight, double? borderRadius, TextStyle? timeTextStyle, TextStyle? buttonTextStyle, bool? autoHideControls, Duration? autoHideDuration, Duration? animationDuration, double? controlsBackgroundOpacity}) PlayerControlsTheme
Copy with modifications
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited