flutter_device_preview icon indicating copy to clipboard operation
flutter_device_preview copied to clipboard

iphone 8 app store screenshot requirement

Open xalikoutis opened this issue 4 years ago • 6 comments

My implementation works really great so far for almost all screenshot requirements for apple and google stores. I only miss the iphone 8 width = 1242; height = 2208; which is not available in device_preview. If i use any other device and resize down to this is looks stretched and crapy.

So what's the right way to proceed

  1. create a PR with new Device
  2. add the ability to add dynamically DeviceInfo or CustomDeviceInfo
  3. other

xalikoutis avatar Nov 17 '20 10:11 xalikoutis

Agreed, it would be great to have an iPhone 8 preset because of the screen size requirement. Alternatively, allowing users to specify any screen size in the custom device mode (as opposed to the preset slider values screen height and widths) would be great!

AlabasterAxe avatar Nov 18 '20 19:11 AlabasterAxe

How do i take a screenshot, i dont see where. version 0.7.1

Blast06 avatar Apr 21 '21 16:04 Blast06

You may need to add the screenshot plugin to your DevicePreview widget:

DevicePreview(
  plugins: [
    const ScreenshotPlugin()
  ],
  builder: (context) {
    return MyApp();
  }
)

AlabasterAxe avatar Apr 21 '21 17:04 AlabasterAxe

Thanks!

Blast06 avatar Apr 22 '21 03:04 Blast06

BTW, If you find going through file.io annoying, you can use this utility I made to dump the screenshot to a local file on the device and then grab it with adb pull [CLIPBOARD_LINK]

https://pub.dev/packages/local_file_screenshot_processor

Just a heads up that I haven't tested it on iOS but has definitely simplified the screenshot process for me on Android.

AlabasterAxe avatar Apr 22 '21 13:04 AlabasterAxe

BTW, If you find going through file.io annoying, you can use this utility I made to dump the screenshot to a local file on the device and then grab it with adb pull [CLIPBOARD_LINK]

https://pub.dev/packages/local_file_screenshot_processor

Just a heads up that I haven't tested it on iOS but has definitely simplified the screenshot process for me on Android.

Nice I have made my own small http api backend that gets every photo and writes it to disk

xalikoutis avatar Apr 22 '21 15:04 xalikoutis