Relative Content

Tag Archive for flutterdartbloc

Unable to trigger listeners in bloc event integration test

I’m doing an integration test, where I want to trigger an event change after a submit button. below is my setup for the test as well as the actual test, I’ve tried multiple ways and positions to set the setEntriesSavedSate, I’m also using a streamcontroller to controll the stream, but the listeners on my widget is never getting called.

Unable to trigger listeners in bloc event integration test

I’m doing an integration test, where I want to trigger an event change after a submit button. below is my setup for the test as well as the actual test, I’ve tried multiple ways and positions to set the setEntriesSavedSate, I’m also using a streamcontroller to controll the stream, but the listeners on my widget is never getting called.

Unable to trigger listeners in bloc event integration test

I’m doing an integration test, where I want to trigger an event change after a submit button. below is my setup for the test as well as the actual test, I’ve tried multiple ways and positions to set the setEntriesSavedSate, I’m also using a streamcontroller to controll the stream, but the listeners on my widget is never getting called.

BlocListener doesn’t listen – Flutter

I’m building a simple signup process with Firebase Auth and Bloc. When the user creates an account it triggers an event of the SignUpBloc called SignUpRequired. On that event, an account on Firebase is created and emits the state SignUpSuccess (and there are also SignUpProcess and SingUpError). I’m using a simple bloc observer to verify every step. It works totally fine, however, the BlocListener doesn’t listen to any change of the bloc state.

BlocListener doesn’t listen – Flutter

I’m building a simple signup process with Firebase Auth and Bloc. When the user creates an account it triggers an event of the SignUpBloc called SignUpRequired. On that event, an account on Firebase is created and emits the state SignUpSuccess (and there are also SignUpProcess and SingUpError). I’m using a simple bloc observer to verify every step. It works totally fine, however, the BlocListener doesn’t listen to any change of the bloc state.