TF-32 Add presentation layer of download attachment for android platform

This commit is contained in:
dab246
2021-09-16 09:08:17 +07:00
committed by Dat H. Pham
parent 30dfb5aec6
commit 20f98ce541
18 changed files with 209 additions and 71 deletions
@@ -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',
);
}
}