2022-04-17 11:45:21 +05:30
|
|
|
import 'package:get/get.dart';
|
2024-08-22 14:35:09 +09:00
|
|
|
import 'package:gifunavi/pages/destination/destination_controller.dart';
|
|
|
|
|
import 'package:gifunavi/pages/index/index_controller.dart';
|
|
|
|
|
import 'package:gifunavi/utils/location_controller.dart';
|
2022-04-17 11:45:21 +05:30
|
|
|
|
2024-09-02 21:25:19 +09:00
|
|
|
import '../../services/api_service.dart';
|
|
|
|
|
|
2022-04-17 11:45:21 +05:30
|
|
|
class IndexBinding extends Bindings {
|
|
|
|
|
@override
|
|
|
|
|
void dependencies() {
|
2024-09-02 21:25:19 +09:00
|
|
|
//Get.lazyPut<IndexController>(() => IndexController());
|
|
|
|
|
////Get.put<IndexController>(IndexController());
|
|
|
|
|
//Get.put<LocationController>(LocationController());
|
|
|
|
|
//Get.put<DestinationController>(DestinationController());
|
|
|
|
|
|
|
|
|
|
Get.put(IndexController(apiService: Get.find<ApiService>()), permanent: true);
|
|
|
|
|
Get.put(LocationController(), permanent: true);
|
|
|
|
|
Get.put(DestinationController(), permanent: true);
|
2022-04-17 11:45:21 +05:30
|
|
|
}
|
|
|
|
|
}
|