Giter Club home page Giter Club logo

Comments (3)

scheung38 avatar scheung38 commented on July 26, 2024

@llfbandit

embedded inside pageView, after recording when Stop is clicked takes me to next pageView as expected by pageController.nextPage, but it is playing the previous recording, not the latest recording?

child: PageView(
  children: <Widget>[
             Text(context, 1, "Hello"),

                                      MaterialApp(
                                        home: Scaffold(
                                          body: Center(
                                            child: AudioRecorder(
                                              onStop: (path) {
                                                setState(() {
                                                  audioSource =
                                                      ap.AudioSource.uri(
                                                          Uri.parse(path!));
                                                  showPlayer = true;
                                                });
                                              },
                                            ),
                                          ),
                                        ),
                                      ),
                                      MaterialApp(
                                        home: Scaffold(
                                          body: Center(
                                            child: Padding(
                                              padding: EdgeInsets.symmetric(
                                                  horizontal: 25),
                                              child: AudioPlayer(
                                                source: audioSource,      <--  But if audioSource! then it complains Null check operator used ona null value???? 
  
                                                onDelete: () {
                                                  setState(
                                                      () => showPlayer = false);
                                                },
                                              ),
                                            ),
                                          ),
                                        ),
                                      ),
                                   
                                      Text('child6'),

from record.

scheung38 avatar scheung38 commented on July 26, 2024

@llfbandit This is when record audio in one pageview and then onStop navigate to next pageview and expect to most recent playback to be played, but instead getting the previously recorded audio, is this related to the state not synced? How is that possible?

from record.

llfbandit avatar llfbandit commented on July 26, 2024

This unrelated to the package.
You can try to add a UniqueKey to the components to enforce a refresh to the view hierarchy.

from record.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.