added assets for Pixel 6

This commit is contained in:
Vadim 2024-05-16 19:20:41 +02:00
parent 8938b40271
commit 48dc1e0870
5 changed files with 18 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -24,7 +24,18 @@ class ScreenshotDevice {
String get deviceFramePath => 'screenshots/assets/frames/${platform.name}/${name}_frame.png'; String get deviceFramePath => 'screenshots/assets/frames/${platform.name}/${name}_frame.png';
} }
final screenshotDevices = <String, ScreenshotDevice>{for (final d in _screenshotDevicesIos) d.name: d}; final screenshotDevices = <String, ScreenshotDevice>{
for (final d in _screenshotDevicesAndroid + _screenshotDevicesIos) d.name: d,
};
final List<ScreenshotDevice> _screenshotDevicesAndroid = [
ScreenshotDevice.fromDisplayName(
displayName: 'Pixel 6',
platform: ScreenshotDevicePlatform.android,
screenshotFrameOffset: (dx: 67, dy: 66),
),
];
final List<ScreenshotDevice> _screenshotDevicesIos = [ final List<ScreenshotDevice> _screenshotDevicesIos = [
ScreenshotDevice.fromDisplayName( ScreenshotDevice.fromDisplayName(
displayName: 'iPhone 8 Plus', displayName: 'iPhone 8 Plus',

View file

@ -1,4 +1,10 @@
enum ScreenshotLayout { enum ScreenshotLayout {
android(
size: (width: 1440, height: 2560),
contentPadding: (left: 144, top: 144, right: 144, bottom: 144),
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
),
iphone65inch( iphone65inch(
size: (width: 1242, height: 2688), size: (width: 1242, height: 2688),
contentPadding: (left: 144, top: 184, right: 144, bottom: 184), contentPadding: (left: 144, top: 184, right: 144, bottom: 184),