mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 00:40:39 +00:00
added assets for Pixel 6
This commit is contained in:
parent
8938b40271
commit
48dc1e0870
5 changed files with 18 additions and 1 deletions
BIN
screenshots/assets/frames/android/pixel_6_frame.png
Normal file
BIN
screenshots/assets/frames/android/pixel_6_frame.png
Normal file
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 |
|
@ -24,7 +24,18 @@ class ScreenshotDevice {
|
|||
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 = [
|
||||
ScreenshotDevice.fromDisplayName(
|
||||
displayName: 'iPhone 8 Plus',
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
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(
|
||||
size: (width: 1242, height: 2688),
|
||||
contentPadding: (left: 144, top: 184, right: 144, bottom: 184),
|
||||
|
|
Loading…
Reference in a new issue