add login and input
This commit is contained in:
18
lib/bindings/input_binding.dart
Normal file
18
lib/bindings/input_binding.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user