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.
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.
93Compare - flutter_bloc
Provides structured, predictable event-driven state management with strong separation of concerns.
86Compare - provider
Lightweight, officially recommended DI and state sharing library built directly on Flutter's InheritedWidget system.
81Compare
Works with
Packages commonly used together with get: ones it builds on, ones built on it, and its own family.
- webget depends on itLightweight bindings for browser APIs via JS interop
- get_cliSame familyOfficial CLI for the GetX framework to scaffold projects, files, and manage dependencies.
- get_storageBuilt on getSynchronous key‑value storage with in‑memory cache and automatic disk backup.
- stacked_servicesBuilt on getProvides default implementations of services for the Stacked architecture.
- accordionBuilt on getAn expandable and collapsible accordion list widget for Flutter.
- flutter_chrome_castBuilt on getIntegrate Google Cast devices to discover, connect, and control media playback.
- pod_playerBuilt on getVimeo and YouTube video player for Flutter with customizable controls.
- quran_libraryBuilt on getAn integrated package for displaying the Holy Qur’an identical to the Medina Quran with the narration of Hafs on the authority of Asim.