Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll list and Button becomes stop #38

Open
SamiraAriaeifar opened this issue Mar 10, 2024 · 2 comments
Open

Scroll list and Button becomes stop #38

SamiraAriaeifar opened this issue Mar 10, 2024 · 2 comments

Comments

@SamiraAriaeifar
Copy link

When the list is scrolled, the interface is updated and the button user becomes stop while the sound is playing.

@mehranshoqi
Copy link
Owner

Could you provide more information? If you check the example, the voice message is placed in scrollable widget and it works fine.

@bahaafathi
Copy link

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();
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants