AliPlayerBottomBarWidget constructor

const AliPlayerBottomBarWidget({
  1. Key? key,
  2. required SharedAnimationManager animationManager,
  3. required AliPlayerWidgetController controller,
  4. required SceneType sceneType,
  5. required bool isPlaying,
  6. required bool isShowExternalSubtitle,
  7. required Duration currentPosition,
  8. required Duration totalDuration,
  9. required Duration bufferedPosition,
  10. required VoidCallback? onSubtitlePressed,
  11. VoidCallback? onPlayIconPressed,
  12. VoidCallback? onReplayIconPressed,
  13. VoidCallback? onFullScreenPressed,
  14. ValueChanged<Duration>? onDragUpdate,
  15. ValueChanged<Duration>? onDragEnd,
  16. ValueChanged<Duration>? onSeekEnd,
  17. required bool isShowExternalSubtitleBtn,
  18. Orientation orientation = Orientation.portrait,
})

构造函数

Implementation

const AliPlayerBottomBarWidget({
  super.key,
  required super.animationManager,
  required this.controller,
  required this.sceneType,
  required this.isPlaying,
  required this.isShowExternalSubtitle,
  required this.currentPosition,
  required this.totalDuration,
  required this.bufferedPosition,
  required this.onSubtitlePressed,
  this.onPlayIconPressed,
  this.onReplayIconPressed,
  this.onFullScreenPressed,
  this.onDragUpdate,
  this.onDragEnd,
  this.onSeekEnd,
  required this.isShowExternalSubtitleBtn,
  this.orientation = Orientation.portrait,
});