Open SamiraAriaeifar opened 6 months ago
Could you provide more information? If you check the example, the voice message is placed in scrollable widget and it works fine.
Just add the Controller in the initState()
@override
void initState() {
_voiceController = VoiceController(
cacheKey: widget.message.id,
maxDuration: const Duration(seconds: 10),
isFile: false,
audioSrc: widget.message.content,
);
super.initState();
}
When the list is scrolled, the interface is updated and the button user becomes stop while the sound is playing.