From 00eef6e45a0d050a7e7c098c277a2aba334c3698 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 14 Nov 2024 13:02:42 +0800 Subject: [PATCH] :bug: Fix app drawer show on mobile --- lib/widgets/navigation/app_scaffold.dart | 9 +++++++-- pubspec.yaml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/widgets/navigation/app_scaffold.dart b/lib/widgets/navigation/app_scaffold.dart index b32e44f..a348081 100644 --- a/lib/widgets/navigation/app_scaffold.dart +++ b/lib/widgets/navigation/app_scaffold.dart @@ -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), ], ); diff --git a/pubspec.yaml b/pubspec.yaml index 006d858..39a7135 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 # 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. -version: 2.0.0+2 +version: 2.0.0+3 environment: sdk: ^3.5.4