Init home feature add presentation layer
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user