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

    Jul 28, 2020 · I am a bit confused about the new release of Bloc: 6.0.0, adding Cubit notion, is the bloc depreciated or we can use both of them?

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

  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. flutter - I use Stateless Widget alongside BLoC almost everytime. Am I ...

    Nov 16, 2022 · For this reason, I would probably use the BLoC pattern to properly inform the user while the request goes through various "states" such as loading, done, failed and so on. Now, say I have a …

  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. Quais as diferenças entre BLOC x Cubit? - Stack Overflow em Português

    Oct 12, 2020 · BLOC e Cubit fazem parte do mesmo pacote (bloc) e utilizam o mesmo padrão (BLoC - Design Pattern Business Logic Component) que ajuda a separar a camada de apresentação da …

  8. flutter - How to scope the BlocProvider correctly when using go_router ...

    Nov 19, 2023 · It sounds like you need to have your bloc provided at a higher level. For example, you could wrap your MaterialApp.router with a MultiBlocProvider.

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

    Jan 24, 2020 · Unfortunately, flutter_bloc Provider.of<T> (context) does not have listen parameter which i can set to false as said at A.2.1. Furthermore, after wrapping CustomPopupButton with …

  10. dart - Difference between BlocProvider.of and context.read for adding ...

    Jun 27, 2024 · Difference between BlocProvider.of and context.read for adding events in the flutter bloc Asked 1 year, 7 months ago Modified 1 year, 7 months ago Viewed 536 times