VoiceMessagePlayer constructor

const VoiceMessagePlayer({
  1. Key? key,
  2. required VoiceController controller,
  3. Color backgroundColor = Colors.white,
  4. Color activeSliderColor = Colors.red,
  5. Color? notActiveSliderColor,
  6. Color circlesColor = Colors.grey,
  7. double innerPadding = 12,
  8. double cornerRadius = 20,
  9. double size = 38,
  10. Widget refreshIcon = const Icon(Icons.refresh, color: Colors.white),
  11. Widget pauseIcon = const Icon(Icons.pause_rounded, color: Colors.white),
  12. Widget playIcon = const Icon(Icons.play_arrow_rounded, color: Colors.white),
  13. Widget stopDownloadingIcon = const Icon(Icons.close, color: Colors.white),
  14. Decoration? playPauseButtonDecoration,
  15. TextStyle circlesTextStyle = const TextStyle(color: Colors.white, fontSize: 10, fontWeight: FontWeight.bold),
  16. TextStyle counterTextStyle = const TextStyle(fontSize: 11, fontWeight: FontWeight.w500),
  17. 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.grey,
    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);