TF-32 Add presentation layer of export attachment for ios platform

This commit is contained in:
dab246
2021-09-16 09:46:49 +07:00
committed by Dat H. Pham
parent afae25a97a
commit d168900975
19 changed files with 517 additions and 119 deletions
@@ -45,9 +45,13 @@ class NetworkBindings extends Bindings {
void _bindingApi() {
Get.put(DioClient(Get.find<Dio>()));
Get.put(JmapHttpClient.HttpClient(Get.find<Dio>()));
Get.put(DownloadClient(Get.find<DioClient>()));
Get.put(DownloadManager(Get.find<DownloadClient>()));
Get.put(MailboxAPI(Get.find<JmapHttpClient.HttpClient>()));
Get.put(SessionAPI(Get.find<JmapHttpClient.HttpClient>()));
Get.put(ThreadAPI(Get.find<JmapHttpClient.HttpClient>()));
Get.put(EmailAPI(Get.find<JmapHttpClient.HttpClient>()));
Get.put(EmailAPI(
Get.find<JmapHttpClient.HttpClient>(),
Get.find<DownloadManager>()));
}
}
+40 -3
View File
@@ -308,10 +308,47 @@ class AppLocalizations {
);
}
String get attachment_download_successfully {
String downloading_file(String fileName) {
return Intl.message(
'Attachment downloaded successfully',
name: 'attachment_download_successfully',
'Downloading $fileName',
name: 'downloading_file',
args: [fileName]
);
}
String get preparing_to_export {
return Intl.message(
'Preparing to export',
name: 'preparing_to_export'
);
}
String get cancel {
return Intl.message(
'Cancel',
name: 'cancel'
);
}
String get user_cancel_download_file {
return Intl.message(
'User cancel download file',
name: 'user_cancel_download_file'
);
}
String get you_need_to_grant_files_permission_to_download_attachments {
return Intl.message(
'You need to grant files permission to download attachments',
name: 'you_need_to_grant_files_permission_to_download_attachments'
);
}
String count_attachment(int count) {
return Intl.message(
'$count attachments',
name: 'count_attachment',
args: [count]
);
}
}