🐛 Fix app drawer show on mobile

This commit is contained in:
2024-11-14 13:02:42 +08:00
parent 9498d428cd
commit 00eef6e45a
2 changed files with 8 additions and 3 deletions

View File

@ -62,11 +62,16 @@ class AppScaffold extends StatelessWidget {
),
);
if (showDrawer) {
if (showDrawer && ResponsiveBreakpoints.of(context).largerThan(MOBILE)) {
final devicePixelRatio = MediaQuery.of(context).devicePixelRatio;
return Row(
children: [
AppNavigationDrawer(),
VerticalDivider(width: 1, color: Theme.of(context).dividerColor),
VerticalDivider(
width: 1 / devicePixelRatio,
thickness: 1 / devicePixelRatio,
),
Expanded(child: innerWidget),
],
);