About 7,830,000 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" …

    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 …

  3. Why use BloC or Provider in Flutter when we already have Flutter's ...

    Oct 13, 2022 · 3 There are a few reasons to use a BloC or Provider rather than Flutter's built-in setState: BloC and Provider offer a more robust way to manage state. BloC and Provider …

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

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

  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 …

  7. flutter - Modal Bottom Sheet and Bloc - Stack Overflow

    Jun 29, 2020 · Actually if you need this bloc only in bottom sheet and nowhere else, the better and cleaner solution is create the StatefullWidget for bottom sheet content, create the Bloc inside …

  8. Flutter Bloc is not updating the state/ not working

    Apr 21, 2020 · Bloc will never change If the state didn't change, you might be confused that you assigned a state, but the fact is that Bloc is a Stream, you'll need to yield a state instead of …

  9. flutter - Using context.read to access another bloc's data in a …

    Nov 6, 2022 · The documentation of flutter_bloc says that: context.read is most commonly used for retrieving a bloc instance in order to add an event within onPressed callbacks. Is it a good …

  10. Best practice for BLoC pattern in Dart/Flutter - Stack Overflow

    Oct 21, 2020 · When using a the BLoC pattern in Flutter, what is considered good programming practice when it comes to structuring your application code? This is a loose question so I will …