useShortestSide property
Calculate responsiveness based on the shortest side of the screen, instead of the actual landscape orientation.
This is useful for apps that want to avoid scrolling screens and distribute their content based on width/height regardless of orientation. Size units can remain the same when the phone is in landscape mode or portrait mode. The developer needs only change a few widgets' hard-coded size depending on the orientation. The rest of the widgets maintain their size but change the way they are displayed.
useShortestSide
can be used in conjunction with
breakpointsLandscape for additional configurability.
Landscape breakpoints will activate when the
physical device is in landscape mode but base
calculations on the shortest side instead of
the actual landscape width.
Implementation
final bool useShortestSide;