PlayerControlsTheme constructor
const
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,
Implementation
const PlayerControlsTheme({
this.primaryColor = Colors.blue,
this.backgroundColor = Colors.black54,
this.iconColor = Colors.white,
this.textColor = Colors.white,
this.progressBarColor = Colors.blue,
this.progressBarBackgroundColor = Colors.white30,
this.mainIconSize = 60,
this.secondaryIconSize = 40,
this.progressBarHeight = 3,
this.borderRadius = 8,
this.timeTextStyle,
this.buttonTextStyle,
this.autoHideControls = true,
this.autoHideDuration = const Duration(seconds: 3),
this.animationDuration = const Duration(milliseconds: 300),
this.controlsBackgroundOpacity = 0.54,
});