PlayerControlsTheme constructor

const PlayerControlsTheme({
  1. Color primaryColor = Colors.blue,
  2. Color backgroundColor = Colors.black54,
  3. Color iconColor = Colors.white,
  4. Color textColor = Colors.white,
  5. Color progressBarColor = Colors.blue,
  6. Color progressBarBackgroundColor = Colors.white30,
  7. double mainIconSize = 60,
  8. double secondaryIconSize = 40,
  9. double progressBarHeight = 3,
  10. double borderRadius = 8,
  11. TextStyle? timeTextStyle,
  12. TextStyle? buttonTextStyle,
  13. bool autoHideControls = true,
  14. Duration autoHideDuration = const Duration(seconds: 3),
  15. Duration animationDuration = const Duration(milliseconds: 300),
  16. 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,
});