TF-56 Implement upload single attachment
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:dio/dio.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:jmap_dart_client/http/http_client.dart' as JmapHttpClient;
|
||||
import 'package:tmail_ui_user/features/composer/data/network/composer_api.dart';
|
||||
import 'package:tmail_ui_user/features/email/data/network/email_api.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/data/network/mailbox_api.dart';
|
||||
import 'package:tmail_ui_user/features/session/data/network/session_api.dart';
|
||||
@@ -53,5 +54,6 @@ class NetworkBindings extends Bindings {
|
||||
Get.put(EmailAPI(
|
||||
Get.find<JmapHttpClient.HttpClient>(),
|
||||
Get.find<DownloadManager>()));
|
||||
Get.put(ComposerAPI(Get.find<DioClient>()));
|
||||
}
|
||||
}
|
||||
@@ -351,5 +351,47 @@ class AppLocalizations {
|
||||
args: [count]
|
||||
);
|
||||
}
|
||||
|
||||
String get attach_file_prepare_text {
|
||||
return Intl.message(
|
||||
'Preparing to attach file...',
|
||||
name: 'attach_file_prepare_text'
|
||||
);
|
||||
}
|
||||
|
||||
String get can_not_upload_this_file_as_attachments {
|
||||
return Intl.message(
|
||||
'Can not upload this file as attachments',
|
||||
name: 'can_not_upload_this_file_as_attachments'
|
||||
);
|
||||
}
|
||||
|
||||
String get attachments_uploaded_successfully {
|
||||
return Intl.message(
|
||||
'Attachments uploaded successfully',
|
||||
name: 'attachments_uploaded_successfully'
|
||||
);
|
||||
}
|
||||
|
||||
String get pick_attachments {
|
||||
return Intl.message(
|
||||
'Pick attachments',
|
||||
name: 'pick_attachments'
|
||||
);
|
||||
}
|
||||
|
||||
String get photos_and_videos {
|
||||
return Intl.message(
|
||||
'Photos and Videos',
|
||||
name: 'photos_and_videos',
|
||||
);
|
||||
}
|
||||
|
||||
String get browse {
|
||||
return Intl.message(
|
||||
'Browse',
|
||||
name: 'browse',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user