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

Only one event fired (or considered). when adding event to Two different Bloc #3665

Closed
Devlonoah opened this issue Dec 16, 2022 · 2 comments
Closed
Labels
question Further information is requested

Comments

@Devlonoah
Copy link

Description
I have two Bloc that I send events to on tapping on a widget.
However only one of the two blocs respond to the event.

Here is the code(snippet):
GestureDetector onTap: () { BlocProvider.of< ShowAudioControlCubit>( context) [hideAudioControl(); BlocProvider.of< AudioPlayerActionBloc> ( context) add (PauseSoundEvent ( ) ) ; }, child: Icon( Icons. close, sizes 34, ), // Icon // GestureDetector 1)

Screenshot 2022-12-17 at 00 11 24

Is there something I can do to fix this issue?

@Devlonoah Devlonoah added the bug Something isn't working label Dec 16, 2022
@Devlonoah Devlonoah changed the title fix: Only one event fired (or considered). when adding event to Two different Bloc Dec 17, 2022
@felangel
Copy link
Owner

felangel commented Jan 2, 2023

Hi @Devlonoah 👋
Thanks for opening an issue!

Can you please provide a link to a GitHub repo or DartPad which contains a minimal reproduction sample? Thanks!

@felangel felangel added question Further information is requested waiting for response Waiting for follow up and removed bug Something isn't working labels Jan 2, 2023
@felangel
Copy link
Owner

Closing for now since there is no reproduction sample. Feel free to provide one and I’m happy to revisit this.

@felangel felangel removed the waiting for response Waiting for follow up label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants