A lightweight, performance-focused fork of GetX — keeping only reactivity and dependency injection.
No routing, no UI helpers — just pure state management.
- Reactive State Management: Simple and powerful state management with
.obsandObx. - Dependency Injection: Smart dependency management with
Get.put,Get.find, andGet.lazyPut. - Widget-Scoped DI: Exclusive
GetInwidget for scoped dependency injection with automatic disposal. - Zero Bloat: No routing, no snackbars, no unnecessary utils. Only what you need.
- High Performance: Optimized for speed and minimal resource consumption.
Add rxget to your pubspec.yaml:
dependencies:
rxget: Or install it via terminal:
flutter pub add rxgetRxGet makes reactivity simple. No streams, no boilerplate.
import 'package:rxget/rxget.dart';
class Controller extends GetxController {
// Make any variable observable with .obs
var count = 0.obs;
void increment() => count++;
}
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
// Initialize the controller
final controller = Get.put(Controller());
return Scaffold(
body: Center(
// Obx listens to changes in observable variables
child: Obx(() => Text("Clicks: ${controller.count}")),
),
floatingActionButton: FloatingActionButton(
onPressed: controller.increment,
child: Icon(Icons.add),
),
);
}
}Manage your dependencies seamlessly without context.
// Register a dependency
Get.put(AuthService());
// Retrieve it anywhere
final authService = Get.find<AuthService>();RxGet introduces GetIn for widget-scoped dependency lifecycle management. Dependencies are automatically disposed when the widget is removed from the tree.
GetIn(
// Single dependency
single: ProfileController(),
// Or multiple
multiple: [
ThemeController(),
SettingsController(),
],
child: ProfileView(),
)RxGet was created to provide the legendary productivity of GetX's state management and dependency injection without the architectural intrusion of its routing and UI helpers.
| Feature | GetX | RxGet |
|---|---|---|
| Data Binding | ✅ | ✅ |
| Dependency Injection | ✅ | ✅ |
| Routing | ✅ | ❌ |
| Snackbars/Dialogs | ✅ | ❌ |
| Utils | ✅ | ❌ |
Contributions are welcome! If you find a bug or want to suggest a feature, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.