Loading topic
async/await. You should also know Flutter’s StatelessWidget, StatefulWidget, BuildContext, and setState. Later examples assume basic familiarity with streams.2 min readasync/await. You should also know the basics of Flutter widgets and setState. This chapter uses the flutter_bloc package.2 min readBuildContext, and basic Cubit usage. It also assumes the flutter_bloc package is in your project.2 min readasync code. It also assumes that you know Flutter widgets, BuildContext, and basic Bloc or Cubit usage.1 min readasync/await, Flutter widgets, BuildContext, and the basic Cubit and Bloc APIs. It also assumes a TodosCubit with a TodosState containing a status such as initial, loading, success, or failure.1 min readasync and await, null safety, Flutter widgets, BuildContext, and basic Bloc or Cubit usage. The goal is to represent every meaningful phase of asynchronous work in state, rather than hiding it inside a widget.1 min readasync and await, Flutter widgets, and the basic Cubit pattern. A Cubit changes state when one of its public methods calls emit. A Bloc adds an event layer between the UI and the state change.2 min readBlocProvider exposes a state object to Flutter widgets. Both Cubit and Bloc separate state changes from the UI. The main difference is how those changes begin:2 min readasync/await, Flutter widgets, and the basic Cubit and BlocProvider APIs. This chapter uses dependency injection, which means giving an object the dependencies it needs instead of creating those dependencies inside the object.2 min readasync/await, Flutter testing basics, and how Cubits and Blocs expose state. The examples use the bloc, flutter_bloc, bloc_test, and flutter_test packages.1 min readBloc classes. A concurrency transformer controls what happens when several events arrive before an earlier event finishes.1 min readasync and await, and basic Flutter widget lifecycles. This chapter explains how Cubit and Bloc deliver state changes to widgets.2 min readasync/await, Flutter widget lifecycles, and basic Bloc usage. This chapter shows how to compose several repositories and Blocs without constructing dependencies inside widgets.2 min readflutter_bloc APIs. A BlocObserver is a global hook for observing the lifecycle of every Cubit and Bloc in an application. It helps you understand when state changes, events are added, errors occur, and insta2 min read