Skip to content

Commit

Permalink
enable top nav for large portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
getBoolean committed Feb 18, 2024
1 parent b378981 commit 2fda4f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ NavigationType $resolveNavigationType(BuildContext context) {
final (_, form, orientation) = $deviceDetails(context);
return switch (orientation) {
Orientation.portrait => switch (form) {
DeviceForm.large => NavigationType.sidebar,
DeviceForm.medium || DeviceForm.small => NavigationType.bottom,
DeviceForm.large => NavigationType.top,
DeviceForm.medium => NavigationType.sidebar,
DeviceForm.small => NavigationType.bottom,
},
Orientation.landscape => switch (form) {
DeviceForm.large => NavigationType.top,
Expand Down

0 comments on commit 2fda4f1

Please sign in to comment.