TF-3517 Add integration test for case Save draft without Reply-To & reopen it
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -13,6 +13,7 @@ mixin MessageDialogActionMixin {
|
||||
String message,
|
||||
String actionName,
|
||||
{
|
||||
Key key = const Key('confirm_dialog_action'),
|
||||
Function? onConfirmAction,
|
||||
Function? onCancelAction,
|
||||
OnCloseButtonAction? onCloseButtonAction,
|
||||
@@ -56,7 +57,7 @@ mixin MessageDialogActionMixin {
|
||||
titleActionButtonMaxLines: titleActionButtonMaxLines,
|
||||
isArrangeActionButtonsVertical: isArrangeActionButtonsVertical
|
||||
)
|
||||
..key(const Key('confirm_dialog_action'))
|
||||
..key(key)
|
||||
..title(title ?? '')
|
||||
..content(message)
|
||||
..addIcon(icon)
|
||||
@@ -108,7 +109,7 @@ mixin MessageDialogActionMixin {
|
||||
titleActionButtonMaxLines: titleActionButtonMaxLines,
|
||||
isArrangeActionButtonsVertical: isArrangeActionButtonsVertical
|
||||
)
|
||||
..key(const Key('confirm_dialog_action'))
|
||||
..key(key)
|
||||
..title(title ?? '')
|
||||
..content(message)
|
||||
..addIcon(icon)
|
||||
@@ -186,7 +187,7 @@ mixin MessageDialogActionMixin {
|
||||
titleActionButtonMaxLines: titleActionButtonMaxLines,
|
||||
isArrangeActionButtonsVertical: isArrangeActionButtonsVertical
|
||||
)
|
||||
..key(const Key('confirm_dialog_action'))
|
||||
..key(key)
|
||||
..title(title ?? '')
|
||||
..content(message)
|
||||
..addIcon(icon)
|
||||
|
||||
@@ -6,8 +6,8 @@ import 'package:tmail_ui_user/features/base/styles/popup_item_widget_style.dart'
|
||||
|
||||
class PopupItemWidget extends StatelessWidget {
|
||||
|
||||
final String _iconAction;
|
||||
final String _nameAction;
|
||||
final String iconAction;
|
||||
final String nameAction;
|
||||
final Color? colorIcon;
|
||||
final double? iconSize;
|
||||
final TextStyle? styleName;
|
||||
@@ -16,20 +16,18 @@ class PopupItemWidget extends StatelessWidget {
|
||||
final EdgeInsetsGeometry? padding;
|
||||
final VoidCallback? onCallbackAction;
|
||||
|
||||
const PopupItemWidget(
|
||||
this._iconAction,
|
||||
this._nameAction,
|
||||
{
|
||||
Key? key,
|
||||
this.colorIcon,
|
||||
this.iconSize,
|
||||
this.styleName,
|
||||
this.isSelected,
|
||||
this.padding,
|
||||
this.selectedIcon,
|
||||
this.onCallbackAction
|
||||
}
|
||||
) : super(key: key);
|
||||
const PopupItemWidget({
|
||||
Key? key,
|
||||
required this.iconAction,
|
||||
required this.nameAction,
|
||||
this.colorIcon,
|
||||
this.iconSize,
|
||||
this.styleName,
|
||||
this.isSelected,
|
||||
this.padding,
|
||||
this.selectedIcon,
|
||||
this.onCallbackAction,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -44,7 +42,7 @@ class PopupItemWidget extends StatelessWidget {
|
||||
padding: padding,
|
||||
child: Row(children: [
|
||||
SvgPicture.asset(
|
||||
_iconAction,
|
||||
iconAction,
|
||||
width: iconSize ?? PopupItemWidgetStyle.iconSize,
|
||||
height: iconSize ?? PopupItemWidgetStyle.iconSize,
|
||||
fit: BoxFit.fill,
|
||||
@@ -52,7 +50,7 @@ class PopupItemWidget extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: PopupItemWidgetStyle.space),
|
||||
Expanded(child: Text(
|
||||
_nameAction,
|
||||
nameAction,
|
||||
style: styleName ?? PopupItemWidgetStyle.labelTextStyle
|
||||
)),
|
||||
if (isSelected == true && selectedIcon != null)
|
||||
|
||||
Reference in New Issue
Block a user