TF-32 Add presentation layer of download attachment for android platform
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:device_info/device_info.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
@@ -13,6 +14,7 @@ class CoreBindings extends Bindings {
|
||||
_bindingKeyboardManager();
|
||||
_bindingValidator();
|
||||
_bindingToast();
|
||||
_bindingDeviceManager();
|
||||
}
|
||||
|
||||
void _bindingAppImagePaths() {
|
||||
@@ -38,4 +40,9 @@ class CoreBindings extends Bindings {
|
||||
void _bindingToast() {
|
||||
Get.put(AppToast());
|
||||
}
|
||||
|
||||
void _bindingDeviceManager() {
|
||||
Get.put(DeviceInfoPlugin());
|
||||
Get.put(DeviceManager(Get.find<DeviceInfoPlugin>()));
|
||||
}
|
||||
}
|
||||
@@ -300,5 +300,19 @@ class AppLocalizations {
|
||||
name: 'an_error_occurred',
|
||||
);
|
||||
}
|
||||
|
||||
String get attachment_download_failed {
|
||||
return Intl.message(
|
||||
'Attachment download failed',
|
||||
name: 'attachment_download_failed',
|
||||
);
|
||||
}
|
||||
|
||||
String get attachment_download_successfully {
|
||||
return Intl.message(
|
||||
'Attachment downloaded successfully',
|
||||
name: 'attachment_download_successfully',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user