setDesktopSizeTo6P1 function

void setDesktopSizeTo6P1({
  1. double p = 1,
})

set desktop size to iphone 6.1

Implementation

void setDesktopSizeTo6P1({double p = 1}) {
  if (!supportPlatformDesktop) return;
  final Size size = Size(414 / p, 896 / p);
  setDesktopWindowSize(size);
  setDesktopMinWindowSize(size);
  setDesktopMaxWindowSize(size);
}