skip to Main Content

Bad condition – Cubit – Flutter

I'm trying to get to the RegistrationSendCode screen. But unfortunately I am getting a bad status error. Here is my provider and builder - Provider - class RegistrationSendCode extends StatelessWidget{ @override Widget build(BuildContext context){ return BlocProvider<RegistrationSendCodeCubit>( create: (context) => RegistrationSendCodeCubit(),…

VIEW QUESTION

Flutter Bloc Listen to stream and emit state with Cubit

How can I listen to stream and emit state with Cubit? With Bloc we can do something like this: on<VideoStreamPlayPauseEvent>( (event, emit) async { if (event.play) { await emit.forEach( videoStreamingRepo.videoDataStream, onData: (VideoData videoStreamData) => VideoStreamState( currentFrame: videoStreamData, isPlaying: true, ),…

VIEW QUESTION
Back To Top
Search