The ultimate ecosystem for state management, navigation, dependencies, and internationalization. Build better apps faster.
Powerful features that streamline your Flutter development
Effortlessly manage your application's state with reactive programming. Simplify your code with GetX's intuitive APIs and eliminate boilerplate.
Simplify your navigation stack with context-less routing. Deep linking, nested navigation, and smooth transitions made effortless.
Lightweight dependency injection that works seamlessly with the framework. Lazy loading, interface binding, and lifecycle management included.
Master GetX with practical examples, interactive guides, and expert resources
// Reactive state management class CounterController extends GetxController { var count = 0.obs; void increment() => count++; } // In your widget: Obx(() => Text( 'Count: ${controller.count}' ));
// Simple navigation Get.to(NextScreen()); // Named routes Get.toNamed('/profile/123'); // With arguments Get.to(DetailScreen(), arguments: {'item': selectedItem}); // Return results var result = await Get.to(PaymentScreen());
// Simple dependency injection Get.put(MyService()); // Lazy initialization Get.lazyPut(() => ApiService()); // Get instance final service = Get.find<MyService>(); // Bindings example class HomeBinding implements Bindings { void dependencies() { Get.lazyPut(() => HomeController()); } }
# Add to pubspec.yaml dependencies: get: ^{latest_version} # Or install via terminal flutter pub add get # Import in your Dart files import 'package:get/get.dart';