🐛 Bug fixes on windows

This commit is contained in:
2025-10-15 22:49:43 +08:00
parent 1834643167
commit 4595865ad3
2 changed files with 4 additions and 11 deletions

View File

@@ -374,10 +374,10 @@ class PageBackButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final isDesktop =
!kIsWeb && (Platform.isMacOS || Platform.isLinux || Platform.isWindows);
final hasPageAction =
!kIsWeb && Platform.isMacOS;
if (isDesktop && isWideScreen(context)) return const SizedBox.shrink();
if (hasPageAction && isWideScreen(context)) return const SizedBox.shrink();
return IconButton(
onPressed: () {