About 51 results
Open links in new tab
  1. What is the difference between Cubit and Bloc? - Stack Overflow

    Jul 28, 2020 · The main difference between Cubit and Bloc is that in Bloc you have Event class in addition to State. So, you are able to use EventTransformer function in order to manipulate your events.

  2. BlocProvider.value Vs BlocProvider (create:) - Stack Overflow

    Oct 22, 2020 · BlocProvider.value( value: BlocProvider.of<BlocA>(context), child: ScreenA(), ); when you have already created a bloc in a different BlocProvider and you just want that same bloc to be …

  3. BlocProvider.of() called with a context that does not contain a Bloc ...

    Jan 24, 2020 · The following assertion was thrown building Builder(dirty): BlocProvider.of() called with a context that does not contain a Bloc of type UserBloc. No ancestor could be found starting from the …

  4. Bloc, Flutter and Navigation - Stack Overflow

    Jan 9, 2019 · BLoC is a very promising approach for state management in Flutter because of one signature ingredient: streams. They allow for decoupling the UI from the business logic and they play …

  5. Can anyone tell the difference of "flutter_bloc" and "bloc" packages in ...

    Aug 19, 2020 · The 'bloc' package contains things you will use in your Bloc layer, like the Bloc class. This isn't necessarily flutter dependent, it is just the logic architecture of your app. The 'flutter bloc' …

  6. how to use flutter_bloc with go_router - Stack Overflow

    Dec 12, 2021 · I have built an app where I use flutter_bloc. i want to use go_router for navigation.but for dynamic routing how can i use GoRouter refreshListener parameter with flutter_bloc GoRouter( …

  7. Using BLoC in a dialog: Could not find the correct Provider

    Nov 12, 2020 · 3 I finally figured it out thanks to the so entry: The answer here is to use a stack to have the dialog and the page coexist and the dialog show when the listener has the correct state. The …

  8. Flutter bloc how to call event the right way? - Stack Overflow

    Oct 31, 2022 · It is fine to call another bloc from any listener, just make sure you have provide the Bloc in the parent node of the widget tree. What you shouldn't do is to define a bloc inside another bloc …

  9. flutter - MVVM vs Bloc patterns - Stack Overflow

    Mar 1, 2019 · BLoC and MVVM seemed to be different when BLoC was introduced, but that differences faded away as BLoC implementations changed over time. Right now the only real difference is that …

  10. How to wait multiple bloc events in same bloc - Stack Overflow

    Jan 24, 2021 · I have one bloc with multiple events. Here I load categories and locations and wait using BlocListener. But my condition for show circular progress indicator work incorrectly and after load …