TF-3410 Update confirm dialog
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -4,7 +4,6 @@ import 'package:core/presentation/state/success.dart';
|
||||
import 'package:core/presentation/utils/keyboard_utils.dart';
|
||||
import 'package:core/utils/app_logger.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:forward/forward/tmail_forward.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
@@ -115,27 +114,28 @@ class ForwardController extends BaseController {
|
||||
}
|
||||
|
||||
void deleteRecipients(BuildContext context, String emailAddress) {
|
||||
showConfirmDialogAction(context,
|
||||
showConfirmDialogAction(
|
||||
context,
|
||||
title: AppLocalizations.of(context).deleteRecipient,
|
||||
AppLocalizations.of(context).messageConfirmationDialogDeleteRecipientForward(emailAddress),
|
||||
AppLocalizations.of(context).remove,
|
||||
onConfirmAction: () => _handleDeleteRecipientAction({emailAddress}),
|
||||
showAsBottomSheet: true,
|
||||
icon: SvgPicture.asset(imagePaths.icDeleteDialogRecipients, fit: BoxFit.fill),
|
||||
titleStyle: const TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColor.colorDeletePermanentlyButton),
|
||||
useIconAsBasicLogo: true,
|
||||
actionStyle: const TextStyle(
|
||||
fontSize: 17,
|
||||
height: 24 / 17,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Colors.white),
|
||||
color: AppColor.steelGray600,
|
||||
),
|
||||
cancelStyle: const TextStyle(
|
||||
fontSize: 17,
|
||||
height: 24 / 17,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColor.colorTextButton),
|
||||
actionButtonColor: AppColor.colorDeletePermanentlyButton,
|
||||
cancelButtonColor: AppColor.colorButtonCancelDialog,
|
||||
color: Colors.white,
|
||||
),
|
||||
actionButtonColor: AppColor.colorF3F6F9,
|
||||
cancelButtonColor: AppColor.blue700,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -217,21 +217,21 @@ class ForwardController extends BaseController {
|
||||
AppLocalizations.of(currentContext!).remove,
|
||||
onConfirmAction: () => _handleDeleteRecipientAction(listEmailAddress),
|
||||
showAsBottomSheet: true,
|
||||
icon: SvgPicture.asset(imagePaths.icDeleteDialogRecipients, fit: BoxFit.fill),
|
||||
titleStyle: const TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColor.colorDeletePermanentlyButton),
|
||||
useIconAsBasicLogo: true,
|
||||
actionStyle: const TextStyle(
|
||||
fontSize: 17,
|
||||
height: 24 / 17,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Colors.white),
|
||||
color: AppColor.steelGray600,
|
||||
),
|
||||
cancelStyle: const TextStyle(
|
||||
fontSize: 17,
|
||||
height: 24 / 17,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColor.colorTextButton),
|
||||
actionButtonColor: AppColor.colorDeletePermanentlyButton,
|
||||
cancelButtonColor: AppColor.colorButtonCancelDialog,
|
||||
color: Colors.white,
|
||||
),
|
||||
actionButtonColor: AppColor.colorF3F6F9,
|
||||
cancelButtonColor: AppColor.blue700,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user