SheenTransportControls constructor

const SheenTransportControls({
  1. Key? key,
  2. required bool playing,
  3. bool loading = false,
  4. VoidCallback? onPlayPause,
  5. VoidCallback? onNext,
  6. VoidCallback? onPrevious,
  7. bool shuffle = false,
  8. VoidCallback? onShuffle,
  9. SheenRepeatMode repeat = SheenRepeatMode.off,
  10. VoidCallback? onRepeat,
  11. VoidCallback? onSkipBack,
  12. VoidCallback? onSkipForward,
  13. Duration skipBack = const Duration(seconds: 15),
  14. Duration skipForward = const Duration(seconds: 30),
  15. Widget? leading,
  16. Widget? trailing,
  17. Color? color,
})

Controls for a player that is playing or paused.

Implementation

const SheenTransportControls({
  super.key,
  required this.playing,
  this.loading = false,
  this.onPlayPause,
  this.onNext,
  this.onPrevious,
  this.shuffle = false,
  this.onShuffle,
  this.repeat = SheenRepeatMode.off,
  this.onRepeat,
  this.onSkipBack,
  this.onSkipForward,
  this.skipBack = const Duration(seconds: 15),
  this.skipForward = const Duration(seconds: 30),
  this.leading,
  this.trailing,
  this.color,
});