Fix horizontal padding bottom sheet modal
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 324fc75901b9f966a7eb3c4bbd0ff977dd4150c1)
This commit is contained in:
@@ -31,6 +31,7 @@ class ConfirmDialogBuilder {
|
||||
EdgeInsets? _margin;
|
||||
double? _widthDialog;
|
||||
double? _heightDialog;
|
||||
double maxWith;
|
||||
Alignment? _alignment;
|
||||
Color? _backgroundColor;
|
||||
bool showAsBottomSheet;
|
||||
@@ -46,6 +47,7 @@ class ConfirmDialogBuilder {
|
||||
this.showAsBottomSheet = false,
|
||||
this.listTextSpan,
|
||||
this.heightButton,
|
||||
this.maxWith = double.infinity,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -169,6 +171,7 @@ class ConfirmDialogBuilder {
|
||||
return Container(
|
||||
width: _widthDialog ?? 400,
|
||||
height: _heightDialog,
|
||||
constraints: BoxConstraints(maxWidth: maxWith),
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.all(Radius.circular(18))),
|
||||
|
||||
Reference in New Issue
Block a user