Init home feature add presentation layer

This commit is contained in:
dab246
2021-07-27 12:54:28 +07:00
committed by Dat H. Pham
parent c235fcdecd
commit 360ab9a501
16 changed files with 677 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import 'package:core/core.dart';
import 'package:get/get.dart';
import 'package:shared_preferences/shared_preferences.dart';
class CoreBindings extends Bindings {
@override
Future dependencies() async {
await _bindingSharePreference();
_bindingAppImagePaths();
_bindingResponsiveManager();
_bindingKeyboardManager();
}
void _bindingAppImagePaths() {
Get.put(ImagePaths());
}
void _bindingResponsiveManager() {
Get.put(ResponsiveUtils());
}
Future _bindingSharePreference() async {
await Get.putAsync(() async => await SharedPreferences.getInstance(), permanent: true);
}
void _bindingKeyboardManager() {
Get.put(KeyboardUtils());
}
}