Code Monkey home page Code Monkey logo

Comments (6)

malaquf avatar malaquf commented on July 26, 2024 1

Hey hey @khatruong2009, I know it. I just opened it because in the documentation itself it tries to configure Amplify before calling runApp, so I thought you'd like to review the doc.

image

from amplify-flutter.

khatruong2009 avatar khatruong2009 commented on July 26, 2024 1

Hi @malaquf, I just merged the change on the amplify-docs repo and it will be included in the next release. Thank you for pointing out this issue to us.

from amplify-flutter.

malaquf avatar malaquf commented on July 26, 2024 1

Great, thanks for taking care and also pointing out the right repo, so the next time I could maybe submit a PR on my own :)

from amplify-flutter.

khatruong2009 avatar khatruong2009 commented on July 26, 2024

Hi @malaquf, WidgetsFlutterBinding.ensureInitialized(); is only needed when calling _configure before calling runApp. This is because calling configureAmplify() before runApp creates a race condition. If you put _configureAmplify() in the initState() or after the runApp and it should work. This issue isn't Gen 2 specific. Let me know if that fixes your problem, thanks.

from amplify-flutter.

khatruong2009 avatar khatruong2009 commented on July 26, 2024

Oh ok I see. Thank you for bringing this to our attention, I'll get working on updating the docs now.

from amplify-flutter.

khatruong2009 avatar khatruong2009 commented on July 26, 2024

@malaquf The change should be out in 25-30 minutes. I'm going to close this issue now but feel free to let us know if you have any other issues in the future.

from amplify-flutter.

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.