MaximizedMusicPlayer constructor
const
MaximizedMusicPlayer({
- Key? key,
- required PlayerCustomizer playerCustomizer,
- Widget playPauseButton = const MaximizedPlayButton(),
- Widget nextButton = const MaximizedNextButton(),
- Widget previousButton = const MaximizedPreviousButton(),
- Widget albumCover = const MaximizedAlbumCover(),
- PreferredSizeWidget appbar = const MaximizedMusicPlayerAppBar(),
- Widget playerSlider = const PlayerSlider(),
- TextStyle artistNameTextStyle = const TextStyle(color: Colors.white),
- Decoration backgroundDecoration = const BoxDecoration(color: Color.fromRGBO(32, 32, 32, 1)),
- TextStyle songTitleTextStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 18),
- TextStyle songDurationTextStyle = const TextStyle(color: Colors.grey, fontSize: 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);