From 4b770e352bfc21e4cb97034e105c21efab9ce4a4 Mon Sep 17 00:00:00 2001 From: getBoolean <19920697+getBoolean@users.noreply.github.com> Date: Sun, 18 Feb 2024 09:10:53 -0600 Subject: [PATCH] use top nav for small portrait desktops --- lib/utils/utils.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index d6ecb034..2fa0af8d 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -125,10 +125,11 @@ DeviceType get _deviceTypeByUserAgent { } NavigationType $resolveNavigationType(BuildContext context) { - final (_, form, orientation) = $deviceDetails(context); + final (type, form, orientation) = $deviceDetails(context); return switch (orientation) { Orientation.portrait => switch (form) { DeviceForm.large => NavigationType.top, + DeviceForm.small when type.isDesktop => NavigationType.top, DeviceForm.medium => NavigationType.sidebar, DeviceForm.small => NavigationType.bottom, },