VoiceMessagePlayer constructor
const
VoiceMessagePlayer({
- Key? key,
- required VoiceController controller,
- Color backgroundColor = Colors.white,
- Color activeSliderColor = Colors.red,
- Color? notActiveSliderColor,
- Color circlesColor = Colors.green,
- double innerPadding = 12,
- double cornerRadius = 20,
- double size = 38,
- Widget refreshIcon = const Icon(Icons.refresh, color: Colors.white),
- Widget pauseIcon = const Icon(Icons.pause_rounded, color: Colors.white),
- Widget playIcon = const Icon(Icons.play_arrow_rounded, color: Colors.white),
- Widget stopDownloadingIcon = const Icon(Icons.close, color: Colors.white),
- Decoration? playPauseButtonDecoration,
- TextStyle circlesTextStyle = const TextStyle(color: Colors.white, fontSize: 10, fontWeight: FontWeight.bold),
- TextStyle counterTextStyle = const TextStyle(fontSize: 11, fontWeight: FontWeight.w500),
- Color playPauseButtonLoadingColor = Colors.white,
Implementation
const VoiceMessagePlayer(
{Key? key,
required this.controller,
this.backgroundColor = Colors.white,
this.activeSliderColor = Colors.red,
this.notActiveSliderColor,
this.circlesColor = Colors.green,
this.innerPadding = 12,
this.cornerRadius = 20,
// this.playerWidth = 170,
this.size = 38,
this.refreshIcon = const Icon(
Icons.refresh,
color: Colors.white,
),
this.pauseIcon = const Icon(
Icons.pause_rounded,
color: Colors.white,
),
this.playIcon = const Icon(
Icons.play_arrow_rounded,
color: Colors.white,
),
this.stopDownloadingIcon = const Icon(
Icons.close,
color: Colors.white,
),
this.playPauseButtonDecoration,
this.circlesTextStyle = const TextStyle(
color: Colors.white,
fontSize: 10,
fontWeight: FontWeight.bold,
),
this.counterTextStyle = const TextStyle(
fontSize: 11,
fontWeight: FontWeight.w500,
),
this.playPauseButtonLoadingColor = Colors.white})
: super(key: key);