State management, dependency injection and routing for Flutter in one package
open sourceMITfree
GetX (the pub package get) is a lightweight package for Flutter that combines state management, dependency injection and route management. It lets an app open screens, snackbars, dialogs and bottom sheets without a BuildContext, and puts performance first: it uses neither Streams nor ChangeNotifier, loads dependencies lazily and removes controllers from memory when they're no longer used.
Problems it solves
- navigate between screens in Flutter without passing BuildContext around
- manage state in my Flutter app with less boilerplate
- inject controllers and services into Flutter widgets
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
Alternatives
The same job
These do what GetX does.
- June Flutter state management that feels like Flutter
- provider InheritedWidgets, but simple
- Bloc Predictable state management for Dart and Flutter with the BLoC pattern
- MobX.dart Reactive state management for Dart and Flutter, a port of MobX
- Riverpod Reactive caching and data-binding framework for Dart and Flutter
- Flutter Hooks React-style hooks for Flutter widgets
