19 lines
481 B
Dart
19 lines
481 B
Dart
import 'package:get/get.dart';
|
|
import '../controllers/input_controller.dart';
|
|
|
|
class InputBinding extends Bindings {
|
|
@override
|
|
void dependencies() {
|
|
Get.lazyPut<InputController>(() => InputController());
|
|
}
|
|
}
|
|
|
|
/// Alternative: Permanent Binding für App-weite Nutzung
|
|
class InputPermanentBinding extends Bindings {
|
|
@override
|
|
void dependencies() {
|
|
// Permanent - Controller bleibt im Speicher
|
|
Get.put<InputController>(InputController(), permanent: true);
|
|
}
|
|
}
|