TF-3585 Add bottom margin read receipt dialog
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -40,7 +40,7 @@ class ConfirmDialogButton extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
padding: maxLines == 1
|
padding: maxLines == 1
|
||||||
? null
|
? const EdgeInsets.symmetric(horizontal: 8)
|
||||||
: padding ?? const EdgeInsets.symmetric(horizontal: 8, vertical: 12),
|
: padding ?? const EdgeInsets.symmetric(horizontal: 8, vertical: 12),
|
||||||
child: Text(
|
child: Text(
|
||||||
label,
|
label,
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ mixin MessageDialogActionMixin {
|
|||||||
bool isArrangeActionButtonsVertical = false,
|
bool isArrangeActionButtonsVertical = false,
|
||||||
int? titleActionButtonMaxLines,
|
int? titleActionButtonMaxLines,
|
||||||
bool useIconAsBasicLogo = false,
|
bool useIconAsBasicLogo = false,
|
||||||
|
EdgeInsetsGeometry? dialogMargin,
|
||||||
}
|
}
|
||||||
) async {
|
) async {
|
||||||
final responsiveUtils = Get.find<ResponsiveUtils>();
|
final responsiveUtils = Get.find<ResponsiveUtils>();
|
||||||
@@ -111,6 +112,7 @@ mixin MessageDialogActionMixin {
|
|||||||
textContent: message,
|
textContent: message,
|
||||||
title: title ?? '',
|
title: title ?? '',
|
||||||
iconWidget: icon,
|
iconWidget: icon,
|
||||||
|
margin: dialogMargin,
|
||||||
widthDialog: responsiveUtils.getSizeScreenWidth(context),
|
widthDialog: responsiveUtils.getSizeScreenWidth(context),
|
||||||
confirmBackgroundButtonColor: actionButtonColor,
|
confirmBackgroundButtonColor: actionButtonColor,
|
||||||
cancelBackgroundButtonColor: cancelButtonColor,
|
cancelBackgroundButtonColor: cancelButtonColor,
|
||||||
|
|||||||
Reference in New Issue
Block a user