find_dropdown
find_dropdown copied to clipboard
Width Landscape issue on i Pad
I found your find_dropdown library very nice and good implementation, saved me alot of time, but there seems to be an issue when the design is landscape, particularly in iPad and landscape mode the width is not quite as the portrait mode, find screenshots, i did a pull request in your git repo hope you can approve it so i can post the change
[FIXED BY] Updating the select_dialog.dart
LINE 131
bool get isMobile =>
MediaQuery.of(context).orientation == Orientation.portrait?
MediaQuery.of(context).size.width > MediaQuery.of(context).size.height:
MediaQuery.of(context).size.height > MediaQuery.of(context).size.width;
BoxConstraints get webDefaultConstraints =>
BoxConstraints(maxWidth: 250, maxHeight: 500);
BoxConstraints get mobileDefaultConstraints => BoxConstraints(
maxWidth: MediaQuery.of(context).orientation == Orientation.portrait
? MediaQuery.of(context).size.width * 0.9
: MediaQuery.of(context).size.height * 0.7,
maxHeight: MediaQuery.of(context).orientation == Orientation.portrait
? MediaQuery.of(context).size.height * 0.7
: MediaQuery.of(context).size.width * 0.7,
);