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. 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' …

  3. dart - get_it with Flutter bloc - Stack Overflow

    Jan 9, 2024 · What the need for get_it in Bloc implementation as we are already using BLOC Provider for dependency injection ? I'm currently using bloc provider for Dependency Injection and how get_it …

  4. 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 …

  5. 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 …

  6. 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 …

  7. How to manage multiple state on same screen using flutter bloc

    Feb 11, 2022 · Like if you have one bloc named testbloc with multiple state then you can define multiple copies of bloc using bloc provider and in bloc builder you can reference the bloc.Catch is that your …

  8. Reactive redirection using go_router and flutter_bloc

    Feb 21, 2023 · What would be the best way to somehow implement a reactive redirection using bloc states? Currently I'm doing redirection like this: router.dart final router = GoRouter( routes: [ …

  9. Flutter BLoCProvider newly passed value not updating

    Apr 1, 2023 · i am super new to Flutter BLoC, i am currently following a video tutorial in building a stock application, while implementing some of my own features. i have the code below and i would like to …

  10. Flutter [bloc_test] not throwing a expection - Stack Overflow

    Jan 10, 2023 · Flutter [bloc_test] not throwing a expection Ask Question Asked 3 years, 2 months ago Modified 3 years ago