TF-2644 Handle total size exceeded maximum size when drag & drop multiple file to composer

This commit is contained in:
dab246
2024-03-01 17:09:09 +07:00
committed by Dat H. Pham
parent d646a5b9e4
commit 145a49d728
54 changed files with 1140 additions and 800 deletions
+16 -2
View File
@@ -3917,10 +3917,10 @@ class AppLocalizations {
);
}
String get messageWarningDialogWhenExceedMaximumFileSizeComposer {
String get warningMessageWhenExceedGenerallySizeInComposer {
return Intl.message(
'Your message is larger than the size generally accepted by third party email systems. If you confirm sending this mail, there is a risk that it gets rejected by your recipient system.',
name: 'messageWarningDialogWhenExceedMaximumFileSizeComposer',
name: 'warningMessageWhenExceedGenerallySizeInComposer',
);
}
@@ -3930,4 +3930,18 @@ class AppLocalizations {
name: 'continueAction',
);
}
String get thisFileCannotBePicked {
return Intl.message(
'This file cannot be picked.',
name: 'thisFileCannotBePicked',
);
}
String get loadingPleaseWait {
return Intl.message(
'Loading... Please wait!',
name: 'loadingPleaseWait',
);
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
class AppConfig {
static const int limitCharToStartSearch = 3;
static const int maximumMegabytesSizeFileAttachedInComposer = 10;
static const int warningAttachmentFileSizeInMegabytes = 10;
static const String appDashboardConfigurationPath = "configurations/app_dashboard.json";
static const String appFCMConfigurationPath = "configurations/env.fcm";