TF-2773 Fix text overflow in warning dialog forward
This commit is contained in:
@@ -23,7 +23,7 @@ class ConfirmDialogBuilder {
|
||||
TextStyle? _styleContent;
|
||||
double? _radiusButton;
|
||||
double? heightButton;
|
||||
EdgeInsets? _paddingTitle;
|
||||
EdgeInsetsGeometry? _paddingTitle;
|
||||
EdgeInsets? _paddingContent;
|
||||
EdgeInsets? _paddingButton;
|
||||
EdgeInsets? _outsideDialogPadding;
|
||||
@@ -95,7 +95,7 @@ class ConfirmDialogBuilder {
|
||||
_radiusButton = radius;
|
||||
}
|
||||
|
||||
void paddingTitle(EdgeInsets? value) {
|
||||
void paddingTitle(EdgeInsetsGeometry? value) {
|
||||
_paddingTitle = value;
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ class ConfirmDialogBuilder {
|
||||
),
|
||||
if (_title.isNotEmpty)
|
||||
Padding(
|
||||
padding: _paddingTitle ?? const EdgeInsets.only(top: 12),
|
||||
padding: _paddingTitle ?? const EdgeInsetsDirectional.only(top: 12, start: 24, end: 24),
|
||||
child: Center(
|
||||
child: Text(
|
||||
_title,
|
||||
@@ -232,7 +232,7 @@ class ConfirmDialogBuilder {
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: _paddingButton ?? const EdgeInsets.only(bottom: 16, left: 16, right: 16),
|
||||
padding: _paddingButton ?? const EdgeInsetsDirectional.only(bottom: 16, start: 24, end: 24),
|
||||
child: Row(
|
||||
children: [
|
||||
if (_cancelText.isNotEmpty)
|
||||
|
||||
@@ -44,7 +44,10 @@ mixin MessageDialogActionMixin {
|
||||
..colorConfirmButton(actionButtonColor ?? AppColor.colorTextButton)
|
||||
..colorCancelButton(cancelButtonColor ?? AppColor.colorCancelButton)
|
||||
..marginIcon(icon != null ? const EdgeInsets.only(top: 24) : null)
|
||||
..paddingTitle(icon != null ? const EdgeInsets.only(top: 24) : EdgeInsets.zero)
|
||||
..paddingTitle(icon != null
|
||||
? const EdgeInsetsDirectional.only(top: 24, start: 24, end: 24)
|
||||
: const EdgeInsetsDirectional.symmetric(horizontal: 24)
|
||||
)
|
||||
..radiusButton(12)
|
||||
..paddingContent(const EdgeInsets.only(left: 24, right: 24, bottom: 24, top: 12))
|
||||
..paddingButton(hasCancelButton ? null : const EdgeInsets.only(bottom: 24, left: 24, right: 24))
|
||||
@@ -86,7 +89,10 @@ mixin MessageDialogActionMixin {
|
||||
..widthDialog(responsiveUtils.getSizeScreenWidth(context))
|
||||
..colorConfirmButton(actionButtonColor ?? AppColor.colorTextButton)
|
||||
..colorCancelButton(cancelButtonColor ?? AppColor.colorCancelButton)
|
||||
..paddingTitle(icon != null ? const EdgeInsets.only(top: 24) : EdgeInsets.zero)
|
||||
..paddingTitle(icon != null
|
||||
? const EdgeInsetsDirectional.only(top: 24, start: 24, end: 24)
|
||||
: const EdgeInsetsDirectional.symmetric(horizontal: 24)
|
||||
)
|
||||
..marginIcon(EdgeInsets.zero)
|
||||
..paddingContent(const EdgeInsets.only(left: 44, right: 44, bottom: 24, top: 12))
|
||||
..paddingButton(hasCancelButton ? null : const EdgeInsets.only(bottom: 16, left: 44, right: 44))
|
||||
@@ -144,7 +150,9 @@ mixin MessageDialogActionMixin {
|
||||
..colorConfirmButton(actionButtonColor ?? AppColor.colorTextButton)
|
||||
..colorCancelButton(cancelButtonColor ?? AppColor.colorCancelButton)
|
||||
..marginIcon(icon != null ? const EdgeInsets.only(top: 24) : null)
|
||||
..paddingTitle(icon != null ? const EdgeInsets.only(top: 24) : EdgeInsets.zero)
|
||||
..paddingTitle(icon != null
|
||||
? const EdgeInsetsDirectional.only(top: 24, start: 24, end: 24)
|
||||
: const EdgeInsetsDirectional.symmetric(horizontal: 24))
|
||||
..marginIcon(EdgeInsets.zero)
|
||||
..paddingContent(const EdgeInsets.only(left: 44, right: 44, bottom: 24, top: 12))
|
||||
..paddingButton(hasCancelButton ? null : const EdgeInsets.only(bottom: 16, left: 44, right: 44))
|
||||
|
||||
+1
-1
@@ -363,9 +363,9 @@ class _AutocompleteContactTextFieldWithTagsState extends State<AutocompleteConta
|
||||
}) async {
|
||||
await showConfirmDialogAction(
|
||||
context,
|
||||
title: AppLocalizations.of(context).messageWarningDialogForForwardsToOtherDomains,
|
||||
AppLocalizations.of(context).doYouWantToProceed,
|
||||
AppLocalizations.of(context).yes,
|
||||
title: AppLocalizations.of(context).messageWarningDialogForForwardsToOtherDomains,
|
||||
cancelTitle: AppLocalizations.of(context).no,
|
||||
alignCenter: true,
|
||||
onConfirmAction: confirmAction,
|
||||
|
||||
Reference in New Issue
Block a user