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