TF-48 Implement compose and send email with simple text
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
@@ -10,7 +11,8 @@ class CoreBindings extends Bindings {
|
||||
_bindingAppImagePaths();
|
||||
_bindingResponsiveManager();
|
||||
_bindingKeyboardManager();
|
||||
_bindingValiadtor();
|
||||
_bindingValidator();
|
||||
_bindingToast();
|
||||
}
|
||||
|
||||
void _bindingAppImagePaths() {
|
||||
@@ -29,7 +31,11 @@ class CoreBindings extends Bindings {
|
||||
Get.put(KeyboardUtils());
|
||||
}
|
||||
|
||||
void _bindingValiadtor() {
|
||||
void _bindingValidator() {
|
||||
Get.put(HtmlMessagePurifier());
|
||||
}
|
||||
|
||||
void _bindingToast() {
|
||||
Get.put(AppToast());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
import 'package:core/core.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class LocalBindings extends Bindings {
|
||||
|
||||
@override
|
||||
void dependencies() {
|
||||
_bindingDatabase();
|
||||
}
|
||||
|
||||
void _bindingDatabase() {
|
||||
Get.put(DatabaseClient());
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:get/get.dart';
|
||||
import 'package:tmail_ui_user/main/bindings/core/core_bindings.dart';
|
||||
import 'package:tmail_ui_user/main/bindings/local/local_bindings.dart';
|
||||
import 'package:tmail_ui_user/main/bindings/network/network_bindings.dart';
|
||||
|
||||
class MainBindings extends Bindings {
|
||||
@@ -7,5 +8,6 @@ class MainBindings extends Bindings {
|
||||
Future dependencies() async {
|
||||
await CoreBindings().dependencies();
|
||||
NetworkBindings().dependencies();
|
||||
LocalBindings().dependencies();
|
||||
}
|
||||
}
|
||||
@@ -199,5 +199,33 @@ class AppLocalizations {
|
||||
name: 'prefix_forward_email',
|
||||
);
|
||||
}
|
||||
|
||||
String get your_email_being_sent {
|
||||
return Intl.message(
|
||||
'Your email being sent...',
|
||||
name: 'your_email_being_sent',
|
||||
);
|
||||
}
|
||||
|
||||
String get your_email_should_have_at_least_one_recipient {
|
||||
return Intl.message(
|
||||
'Your email should have at least one recipient',
|
||||
name: 'your_email_should_have_at_least_one_recipient',
|
||||
);
|
||||
}
|
||||
|
||||
String get message_sent {
|
||||
return Intl.message(
|
||||
'Message sent',
|
||||
name: 'message_sent',
|
||||
);
|
||||
}
|
||||
|
||||
String get error_message_sent {
|
||||
return Intl.message(
|
||||
'Error message sent',
|
||||
name: 'error_message_sent',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user