skip to Main Content

Flutter – listener not trigger when using local bloc (bloc: parameter)

I have a bloc which has global state (BlocProvider is initialised before Material App). In the onPreesed callback of a button I have a bloc listener: BlocListener<RiskAssesmentValueCubit, RiskAssesmentValueState>( bloc: riskAss ..checkActualVersusCalculated(user.customerId, riskAttitudeQuestionsDetails), listener: (BuildContext context, RiskAssesmentValueState state) { print('Listener called');…

VIEW QUESTION

Multi Bloc Provider Flutter

I have several cubits working in my application, but for the cubit to work it always needs to be injected into the MyApp Main of my application, is there any way to concentrate the Cubit / Bloc instances without having…

VIEW QUESTION

Flutter – Could not find the correct Provider<SplashCubit> above this BlocBuilder<SplashCubit, SplashState> Widget

Please help This is my MyApp Class class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Instagram', theme: ThemeData( primarySwatch: Colors.blue, inputDecorationTheme: InputDecorationTheme( enabledBorder: OutlineInputBorder( borderSide: BorderSide(width: 1, color: Colors.white.withOpacity(0.2)), ), focusedBorder:…

VIEW QUESTION
Back To Top
Search