add geolocation View and controller and services, routes and bindings
This commit is contained in:
20
lib/bindings/geolocation_binding.dart
Normal file
20
lib/bindings/geolocation_binding.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:get/get.dart';
|
||||
import '../controllers/geolocation_controller.dart';
|
||||
|
||||
/// GetX Binding für Geolocation Dependencies
|
||||
class GeolocationBinding extends Bindings {
|
||||
@override
|
||||
void dependencies() {
|
||||
// Lazy Loading - Controller wird erst erstellt wenn benötigt
|
||||
Get.lazyPut<GeolocationController>(() => GeolocationController());
|
||||
}
|
||||
}
|
||||
|
||||
/// Alternative: Permanent Binding für App-weite Nutzung
|
||||
class GeolocationPermanentBinding extends Bindings {
|
||||
@override
|
||||
void dependencies() {
|
||||
// Permanent - Controller bleibt im Speicher
|
||||
Get.put<GeolocationController>(GeolocationController(), permanent: true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user