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