AudioControlsConfiguration constructor
const
AudioControlsConfiguration({
- bool enablePlayPause = true,
- bool enableProgressBar = true,
- bool enableProgressText = true,
- bool enableVolumeControl = false,
- bool enableSpeedControl = false,
- Color? progressBarColor,
- Color? playPauseIconColor,
- Color? textColor,
- IconData playIcon = Icons.play_arrow,
- IconData pauseIcon = Icons.pause,
- double progressBarHeight = 5.0,
- Widget playPauseBuilder(
- AudioPlayer player,
- VoidCallback onTap
- Widget progressBarBuilder()?,
- Widget timeTextBuilder()?,
- Widget? audioPlayingStateWidget,
- Widget? audioDefaultStateWidget,
- bool useDefaultControls = true,
Implementation
const AudioControlsConfiguration({
this.enablePlayPause = true,
this.enableProgressBar = true,
this.enableProgressText = true,
this.enableVolumeControl = false,
this.enableSpeedControl = false,
this.progressBarColor,
this.playPauseIconColor,
this.textColor,
this.playIcon = Icons.play_arrow,
this.pauseIcon = Icons.pause,
this.progressBarHeight = 5.0,
this.playPauseBuilder,
this.progressBarBuilder,
this.timeTextBuilder,
this.audioPlayingStateWidget,
this.audioDefaultStateWidget,
this.useDefaultControls = true,
});