AudioControlsConfiguration constructor

const AudioControlsConfiguration({
  1. bool enablePlayPause = true,
  2. bool enableProgressBar = true,
  3. bool enableProgressText = true,
  4. bool enableVolumeControl = false,
  5. bool enableSpeedControl = false,
  6. bool enableVolumeSlicerControl = false,
  7. Color? progressBarColor,
  8. Color? inactiveTrackColor,
  9. TextStyle? timeTextStyle,
  10. Color? playPauseIconColor,
  11. Color? textColor,
  12. IconData playIcon = Icons.play_arrow,
  13. IconData pauseIcon = Icons.pause,
  14. double progressBarHeight = 5.0,
  15. EdgeInsetsGeometry controlsPadding = const EdgeInsets.all(12.0),
  16. Widget playPauseBuilder(
    1. AudioPlayer player,
    2. VoidCallback onTap
    )?,
  17. Widget progressBarBuilder(
    1. AudioPlayer player,
    2. Duration current,
    3. Duration total
    )?,
  18. Widget timeTextBuilder(
    1. AudioPlayer player,
    2. Duration current,
    3. Duration total
    )?,
  19. Widget? audioPlayingStateWidget,
  20. Widget? audioDefaultStateWidget,
  21. bool useDefaultControls = true,
})

Implementation

const AudioControlsConfiguration({
  this.enablePlayPause = true,
  this.enableProgressBar = true,
  this.enableProgressText = true,
  this.enableVolumeControl = false,
  this.enableSpeedControl = false,
  this.enableVolumeSlicerControl = false,
  this.progressBarColor,
  this.inactiveTrackColor,
  this.timeTextStyle,
  this.playPauseIconColor,
  this.textColor,
  this.playIcon = Icons.play_arrow,
  this.pauseIcon = Icons.pause,
  this.progressBarHeight = 5.0,
  this.controlsPadding = const EdgeInsets.all(12.0),
  this.playPauseBuilder,
  this.progressBarBuilder,
  this.timeTextBuilder,
  this.audioPlayingStateWidget,
  this.audioDefaultStateWidget,
  this.useDefaultControls = true,
});