Skip to content

Commit fa37adf

Browse files
committed
chore: Disabled dense property on ListTiles on desktop.
1 parent 9b100d5 commit fa37adf

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

lib/widgets/dialog/app_dialog.dart

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,28 +72,21 @@ class AppDialog extends StatelessWidget {
7272
contentPadding: EdgeInsets.zero,
7373
content: SizedBox(
7474
width: MediaQuery.of(context).size.width,
75-
child: Theme(
76-
data: Theme.of(context).copyWith(
77-
listTileTheme: ListTileThemeData(
78-
dense: currentPlatform.isDesktop,
79-
),
80-
),
81-
child: ListView(
82-
shrinkWrap: true,
83-
children: [
84-
if (title != null)
85-
Transform.translate(
86-
offset: Offset(0, -1),
87-
child: _AppDialogTitle(
88-
title: title!,
89-
ellipsisTitleOnOverflow: ellipsisTitleOnOverflow,
90-
displayCloseButton: displayCloseButton,
91-
borderRadius: borderRadius,
92-
),
75+
child: ListView(
76+
shrinkWrap: true,
77+
children: [
78+
if (title != null)
79+
Transform.translate(
80+
offset: Offset(0, -1),
81+
child: _AppDialogTitle(
82+
title: title!,
83+
ellipsisTitleOnOverflow: ellipsisTitleOnOverflow,
84+
displayCloseButton: displayCloseButton,
85+
borderRadius: borderRadius,
9386
),
94-
...children,
95-
],
96-
),
87+
),
88+
...children,
89+
],
9790
),
9891
),
9992
actions: actions,

0 commit comments

Comments
 (0)