Fix overflow height delete identity dialog on mobile
This commit is contained in:
@@ -29,7 +29,6 @@ class ConfirmDialogBuilder {
|
|||||||
EdgeInsetsGeometry? _marginIcon;
|
EdgeInsetsGeometry? _marginIcon;
|
||||||
EdgeInsets? _margin;
|
EdgeInsets? _margin;
|
||||||
double? _widthDialog;
|
double? _widthDialog;
|
||||||
double? _heightDialog;
|
|
||||||
double maxWith;
|
double maxWith;
|
||||||
Alignment? _alignment;
|
Alignment? _alignment;
|
||||||
Color? _backgroundColor;
|
Color? _backgroundColor;
|
||||||
@@ -117,10 +116,6 @@ class ConfirmDialogBuilder {
|
|||||||
_widthDialog = value;
|
_widthDialog = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void heightDialog(double? value) {
|
|
||||||
_heightDialog = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
void alignment(Alignment? alignment) {
|
void alignment(Alignment? alignment) {
|
||||||
_alignment = alignment;
|
_alignment = alignment;
|
||||||
}
|
}
|
||||||
@@ -168,7 +163,6 @@ class ConfirmDialogBuilder {
|
|||||||
Widget _bodyContent() {
|
Widget _bodyContent() {
|
||||||
return Container(
|
return Container(
|
||||||
width: _widthDialog ?? 400,
|
width: _widthDialog ?? 400,
|
||||||
height: _heightDialog,
|
|
||||||
constraints: BoxConstraints(maxWidth: maxWith),
|
constraints: BoxConstraints(maxWidth: maxWith),
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
|||||||
+2
-3
@@ -26,9 +26,8 @@ class DeleteIdentityDialogBuilder extends StatelessWidget {
|
|||||||
responsiveUtils: responsiveUtils,
|
responsiveUtils: responsiveUtils,
|
||||||
mobile: (_buildDeleteDialog(context)
|
mobile: (_buildDeleteDialog(context)
|
||||||
..alignment(Alignment.bottomCenter)
|
..alignment(Alignment.bottomCenter)
|
||||||
..outsideDialogPadding(const EdgeInsets.only(left: 0, right: 0, bottom: PlatformInfo.isWeb ? 42 : 16))
|
..outsideDialogPadding(const EdgeInsets.only(bottom: PlatformInfo.isWeb ? 42 : 16))
|
||||||
..widthDialog(MediaQuery.of(context).size.width - 16)
|
..widthDialog(MediaQuery.of(context).size.width - 16))
|
||||||
..heightDialog(280))
|
|
||||||
.build(),
|
.build(),
|
||||||
landscapeMobile: _buildDeleteDialog(context).build(),
|
landscapeMobile: _buildDeleteDialog(context).build(),
|
||||||
tablet: _buildDeleteDialog(context).build(),
|
tablet: _buildDeleteDialog(context).build(),
|
||||||
|
|||||||
Reference in New Issue
Block a user