TF-1866 Display BottomBar when on long press sending email item
(cherry picked from commit dec400499e44c25a9f622424e5e26949f944b5a0)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
enum SendingEmailActionType {
|
||||
delete;
|
||||
|
||||
String getButtonTitle(BuildContext context) {
|
||||
switch(this) {
|
||||
case SendingEmailActionType.delete:
|
||||
return AppLocalizations.of(context).delete;
|
||||
}
|
||||
}
|
||||
|
||||
String getButtonKey() {
|
||||
switch(this) {
|
||||
case SendingEmailActionType.delete:
|
||||
return 'button_delete_sending_email';
|
||||
}
|
||||
}
|
||||
|
||||
Color getButtonIconColor() {
|
||||
switch(this) {
|
||||
case SendingEmailActionType.delete:
|
||||
return AppColor.colorDeletePermanentlyButton;
|
||||
}
|
||||
}
|
||||
|
||||
Color getButtonTitleColor() {
|
||||
switch(this) {
|
||||
case SendingEmailActionType.delete:
|
||||
return AppColor.colorDeletePermanentlyButton;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user