Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Aug 30, 2024
1 parent 0854d99 commit d0bdad8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/flutter_adaptive_scaffold/lib/src/breakpoints.dart
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,9 @@ class Breakpoint {
? width >= lowerBoundWidth
: width >= lowerBoundWidth && width < upperBoundWidth;

final bool isHeightActive =
isPortrait || !isPortrait && isWidthActive || andUp
? isWidthActive || height >= lowerBoundHeight
: height >= lowerBoundHeight && height < upperBoundHeight;
final bool isHeightActive = isPortrait || isWidthActive || andUp
? isWidthActive || height >= lowerBoundHeight
: height >= lowerBoundHeight && height < upperBoundHeight;

return isWidthActive && isHeightActive && isRightPlatform;
}
Expand Down

0 comments on commit d0bdad8

Please sign in to comment.