talira

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.

  1. June Flutter state management that feels like Flutter
  2. provider InheritedWidgets, but simple
  3. Bloc Predictable state management for Dart and Flutter with the BLoC pattern
  4. MobX.dart Reactive state management for Dart and Flutter, a port of MobX
  5. Riverpod Reactive caching and data-binding framework for Dart and Flutter
  6. Flutter Hooks React-style hooks for Flutter widgets

Compare GetX with the top 3