Skip to content

Commit 7e98ff1

Browse files
gnpricechrisbobbe
authored andcommitted
theme: Set visualDensity to standard, even on desktop
This also fixes an assert in ZulipMenuItemButton when running desktop builds of the app.
1 parent ec1baee commit 7e98ff1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/widgets/theme.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ ThemeData zulipThemeData(BuildContext context) {
5959
brightness: brightness,
6060
typography: zulipTypography(context),
6161
extensions: themeExtensions,
62+
63+
// Use "standard" visual density (the default for mobile platforms)
64+
// on all platforms. That helps the desktop builds of the app be faithful
65+
// previews of how the app behaves on mobile -- which is the only purpose
66+
// we use the desktop builds for.
67+
visualDensity: VisualDensity.standard,
68+
6269
iconButtonTheme: IconButtonThemeData(style: IconButton.styleFrom(
6370
foregroundColor: designVariables.icon,
6471
)),

0 commit comments

Comments
 (0)