Comments (7)
So, my mistake was not using the Equatable the right way, passing the currentPlayer in the props, for the builder at BlocBuilder be called again?
Your solution works perfectly here! 👍 Thank you!
from bloc.
Thanks! Really helped me out! 👍
from bloc.
I was just about to create an issue for this, then I saw that the version got bumped from 0.4.5
to 0.4.6
, and it fixed just this. Thanks, awesome work. 👍
from bloc.
Hi @arthurcohen 👋
If you update tictactoe_bloc.dart
, tictactoe_state.dart
, and tictactoe.dart
to match this gist everything should work.
Hope that helps 👍
from bloc.
@algirdasmac thanks for reporting this! I'll have a fix shortly 👍
from bloc.
Fixed in #30 and published in flutter_bloc v0.4.6
from bloc.
@felangel, could you help me? I'm having this same issue, but only when I use a BlocBuilder inside of a stateful widget.
Putting some context: I'm building an app to learn how to use BLoC, and one of the use cases is a Tic Tac Toe game.
See this file. At line 81 I dispatch an event. (tictactoe.dart)
My initialState contains a Play.x
. After the user action, I expects a Play.y
.
Here is the BLoC: tictactoe_bloc.dart
Sorry if this is the wrong place for it, but I didnt want to open a new issue just for that.
from bloc.
Related Issues (20)
- [help] Best Practice for Sharing Events and States Across Multiple Blocs, Bloc to Bloc communications HOT 8
- fix: BlocBuilder doesn't receive state when emitted from async loop HOT 4
- How to inspect bloc in Flutter Inspector? HOT 1
- How to deal with assert(false) in blocTest? HOT 2
- feat: Test support for BlocObservers HOT 10
- build: Update test dependency of bloc_test package from 1.16.6 to the latest version HOT 4
- feat: support testing of `emit.forEach` HOT 5
- feat: API notifying when any Bloc widgets are active HOT 2
- feat: Create a mutable object starting from the state of a bloc. HOT 4
- [Question] One BlocListener in nested page HOT 1
- feat: Cancel running events after closing the bloc HOT 1
- feat: Add optional type argument to represent "from state" in `on` method HOT 4
- feat: Toggle the use of part / part of HOT 5
- fix: Bloc listener is not listening after cubit emit new state HOT 2
- test: Right way to test bloc ? Seed vs adding events in act. HOT 1
- fix: BlocListeners fire for non-active pages that are still in the navigator stack HOT 5
- fix: TypeError: Cannot read properties of undefined after flutter upgrade to flutter 3.25 HOT 3
- feat: Add `updateShouldNotify` or similar to set the equality behavior to emit states.
- fix: Url path HOT 2
- docs: testing initial events HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bloc.