🐛 Fix app drawer show on mobile

This commit is contained in:
LittleSheep 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( return Row(
children: [ children: [
AppNavigationDrawer(), AppNavigationDrawer(),
VerticalDivider(width: 1, color: Theme.of(context).dividerColor), VerticalDivider(
width: 1 / devicePixelRatio,
thickness: 1 / devicePixelRatio,
),
Expanded(child: innerWidget), Expanded(child: innerWidget),
], ],
); );

View File

@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 2.0.0+2 version: 2.0.0+3
environment: environment:
sdk: ^3.5.4 sdk: ^3.5.4