skip to Main Content

flutter bloc: how to wait for an event the return some state data

I am trying to integrate flutter_login widget with bloc. Here is the sample code I am using BlocProvider( create: (ctx) => UserAuthenticationPageBloc(ctx), child: BlocListener<UserAuthenticationPageBloc, UserAuthenticationPageState>( listener: (context, state) { // not used at the moment }, child: BlocBuilder<UserAuthenticationPageBloc, UserAuthenticationPageState>( builder:…

VIEW QUESTION
Back To Top
Search