MaximizedMusicPlayer constructor

const MaximizedMusicPlayer({
  1. Key? key,
  2. required PlayerCustomizer playerCustomizer,
  3. Widget playPauseButton = const MaximizedPlayButton(),
  4. Widget nextButton = const MaximizedNextButton(),
  5. Widget previousButton = const MaximizedPreviousButton(),
  6. Widget albumCover = const MaximizedAlbumCover(),
  7. PreferredSizeWidget appbar = const MaximizedMusicPlayerAppBar(),
  8. Widget playerSlider = const PlayerSlider(),
  9. TextStyle artistNameTextStyle = const TextStyle(color: Colors.white),
  10. Decoration backgroundDecoration = const BoxDecoration(color: Color.fromRGBO(32, 32, 32, 1)),
  11. TextStyle songTitleTextStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 18),
  12. TextStyle songDurationTextStyle = const TextStyle(color: Colors.grey, fontSize: 13),
  13. TextStyle songPositionTextStyle = const TextStyle(color: Colors.grey, fontSize: 13),
})

Implementation

const MaximizedMusicPlayer(
    {Key? key,
    required this.playerCustomizer,
    this.playPauseButton = const MaximizedPlayButton(),
    this.nextButton = const MaximizedNextButton(),
    this.previousButton = const MaximizedPreviousButton(),
    this.albumCover = const MaximizedAlbumCover(),
    this.appbar = const MaximizedMusicPlayerAppBar(),
    this.playerSlider = const PlayerSlider(),
    this.artistNameTextStyle = const TextStyle(color: Colors.white),
    this.backgroundDecoration = const BoxDecoration(
      color: Color.fromRGBO(32, 32, 32, 1),
    ),
    this.songTitleTextStyle = const TextStyle(
      color: Colors.white,
      fontWeight: FontWeight.bold,
      fontSize: 18,
    ),
    this.songDurationTextStyle = const TextStyle(
      color: Colors.grey,
      fontSize: 13,
    ),
    this.songPositionTextStyle = const TextStyle(
      color: Colors.grey,
      fontSize: 13,
    )})
    : super(key: key);