| What it is | State management, dependency injection and routing for Flutter in one package | Flutter state management that feels like Flutter | InheritedWidgets, but simple | Predictable state management for Dart and Flutter with the BLoC pattern |
| Features | - reactive and simple state management
- dependency injection with lazy loading
- route management without BuildContext
- snackbars, dialogs and bottom sheets without context
- automatic disposal of unused controllers
| - State classes that extend JuneState, shown with JuneBuilder
- Call setState from any file to rebuild the widgets that use the state
- No MaterialApp wrapper and no manual initialization
- Several global instances of one state class through tags
- State local to one widget with global: false
- Selective rebuilds of chosen builders through ids
- Android, iOS, Linux, macOS, web and Windows
| - Provider, ChangeNotifierProvider, FutureProvider, StreamProvider and ProxyProvider
- Lazy creation and automatic disposal of provided objects
- context.watch, context.read, Consumer and Selector to read values
- MultiProvider to combine providers
- State visible in Flutter DevTools
- Android, iOS, Linux, macOS, web and Windows
| - Cubit: functions that emit new states
- Bloc: events mapped to states, with observable transitions
- flutter_bloc widgets: BlocBuilder, BlocSelector, BlocListener, BlocConsumer, BlocProvider
- RepositoryProvider for dependency injection
- Companion packages for testing, persisted state, undo/redo and event concurrency
|