setDesktopSizeTo4P7 function

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

set desktop size to iphone 4.7

Implementation

void setDesktopSizeTo4P7({double p = 1}) {
  if (!supportPlatformDesktop) return;
  final Size size = Size(375 / p, 667 / p);
  setDesktopWindowSize(size);
  setDesktopMinWindowSize(size);
  setDesktopMaxWindowSize(size);
}