TechnoUrmish / Sizer

A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
MIT License
240 stars 73 forks source link

Currently iOS landscape is regarded as Tablet landscape #48

Closed sir-adam-smith closed 1 year ago

sir-adam-smith commented 2 years ago

Is there a way we can get iOs landscape to recognise its a mobile device. Currently is considers an iPhone 13 mini in landscape to be a tablet in landscape

devibrahimkarahan commented 2 years ago
if (MediaQueryData.fromWindow(WidgetsBinding.instance!.window).size.shortestSide < 600) {
  deviceType = DeviceType.mobile;
} else {
  deviceType = DeviceType.tablet;
}

You can use this condition