Skip to content

Commit ec31ae8

Browse files
fix: macOS, iPad Delete Action Fails and Causes Bottom Overflow Error in Confirmation Dialog
1 parent f5d710f commit ec31ae8

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

lib/view/widgets/badge_delete_dialog.dart

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,15 @@ class DeleteBadgeDialog extends StatelessWidget {
1212
shape: RoundedRectangleBorder(
1313
borderRadius: BorderRadius.circular(5.r),
1414
),
15-
child: Container(
16-
height: 110.h,
17-
width: 300.w,
18-
decoration: BoxDecoration(
19-
color: Colors.white,
20-
borderRadius: BorderRadius.circular(5.r),
21-
),
15+
child: Padding(
16+
padding: EdgeInsets.symmetric(vertical: 16.h, horizontal: 16.w),
2217
child: Column(
18+
mainAxisSize: MainAxisSize.min,
2319
children: [
24-
SizedBox(
25-
height: 10.h,
26-
),
2720
Row(
2821
children: [
29-
SizedBox(
30-
width: 20,
31-
),
3222
Icon(Icons.delete, color: Colors.black),
33-
SizedBox(
34-
width: 10,
35-
),
23+
SizedBox(width: 10),
3624
Text(
3725
'Delete',
3826
style: TextStyle(
@@ -42,21 +30,18 @@ class DeleteBadgeDialog extends StatelessWidget {
4230
),
4331
],
4432
),
45-
SizedBox(
46-
height: 7.h,
47-
),
33+
SizedBox(height: 12.h),
4834
Row(
4935
children: [
50-
SizedBox(
51-
width: 20,
36+
Expanded(
37+
child: Text(
38+
'Are you sure want to delete this badge?',
39+
style: TextStyle(fontSize: 14.sp),
40+
),
5241
),
53-
Text('Are you sure want to delete this badge?',
54-
style: TextStyle(fontSize: 14.sp)),
5542
],
5643
),
57-
SizedBox(
58-
height: 10.h,
59-
),
44+
SizedBox(height: 16.h),
6045
Row(
6146
mainAxisAlignment: MainAxisAlignment.end,
6247
children: [

0 commit comments

Comments
 (0)