flutter_device_preview
flutter_device_preview copied to clipboard
iphone 8 app store screenshot requirement
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
- create a PR with new Device
- add the ability to add dynamically DeviceInfo or CustomDeviceInfo
- other
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!
How do i take a screenshot, i dont see where. version 0.7.1
You may need to add the screenshot plugin to your DevicePreview widget:
DevicePreview(
plugins: [
const ScreenshotPlugin()
],
builder: (context) {
return MyApp();
}
)
Thanks!
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.
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