Skip to content
pubscout

get

4.7.3, released 12 months ago by getx.site

All-in-one framework for reactive state management, context-less routing, and dependency injection.

WASM-ready
$ flutter pub add get
Source repository

What it does

Provides a comprehensive Flutter framework uniting reactive and simple state management, dependency lookup, and route management without requiring BuildContext. It also includes built-in utilities for internationalization, theme toggling, and network requests via GetConnect. Developers can observe state changes using .obs extensions and Obx widgets without code generation or boilerplate.

AI-written summary of version 4.7.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want a unified framework for state management, navigation, and dependency injection without BuildContext dependency
  • You need rapid prototyping with minimal boilerplate and simple reactive state hooks (.obs)
  • You want automatic memory management and disposal of controllers as routes change

Skip it when

  • You prefer idiomatic Flutter architecture adhering strictly to Flutter's standard widget tree and BuildContext lifecycle
  • You want modular, decoupled libraries focused exclusively on single responsibilities rather than a monolithic framework

Strengths

  • Combines state management, navigation, and dependency injection in a single package
  • Zero boilerplate reactive programming without code generation or StreamControllers
  • Removes controllers from memory automatically when unused by default

Weaknesses

  • Monolithic approach tightly couples core app architecture (routing, DI, state) to a single third-party package
  • Bypassing Flutter's native BuildContext and Navigator can cause compatibility friction across major Flutter SDK updates

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Wrapping your root app in GetMaterialApp is required for context-less navigation, snackbars, and dialogs.

class Controller extends GetxController {
  var count = 0.obs;
  increment() => count++;
}

class Home extends StatelessWidget {
  final Controller c = Get.put(Controller());
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Obx(() => Text('Clicks: ${c.count}'))),
      floatingActionButton: FloatingActionButton(child: Icon(Icons.add), onPressed: c.increment),
    );
  }
}

Alternatives

Packages that do the same job and could replace get.

  • flutter_riverpod

    Offers compile-safe dependency injection and state management that aligns cleanly with Flutter's widget lifecycle without bypassing BuildContext.

  • flutter_bloc

    Provides structured, predictable event-driven state management with strong separation of concerns.

  • provider

    Lightweight, officially recommended DI and state sharing library built directly on Flutter's InheritedWidget system.

Works with

Packages commonly used together with get: ones it builds on, ones built on it, and its own family.