Coder Social home page Coder Social logo

Comments (3)

felangel avatar felangel commented on June 1, 2024 1

Closing for now since there aren't any actionable next steps. If you're still stuck feel free to reach out on discord.

from bloc.

codesculpture avatar codesculpture commented on June 1, 2024

There seems some error occuring thats what preventing the state to be updated,
determineLocation is where the error occuring, you can comment that and pass with dummy lat and lang to state and u can make sure.

from bloc.

elianortega avatar elianortega commented on June 1, 2024

Hello @caibimiaokong, from a quick overview on what you mentioned I can point out 2 things:

  1. When adding the event to the Bloc prefer using context.read so in here you should do:
 context.read<MapBloc>().add(LocationRequested());
  1. When mapping the event to the function here the function is not called as it is missing the parenthesis at the end _onLocationRequested();. Also you should fix the callback function to receive the event and the emitter just as you do for _onChangeMapType.

Finally, I highly recommend on checking the documentation on getting started at https://bloclibrary.dev so that you get all the best practices correct.

from bloc.

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.