m3_lightmeter/screenshots/screenshot_config.dart
2024-05-11 17:02:25 +02:00

40 lines
1.1 KiB
Dart

import 'dart:convert';
class ScreenshotConfig {
final String title;
final String subtitle;
final String screenshotPath;
const ScreenshotConfig({
required this.title,
required this.subtitle,
required this.screenshotPath,
});
}
enum ScreenshotLayout {
iphone65inch(
size: (width: 1242, height: 2688),
contentPadding: (left: 150, top: 192, right: 150, bottom: 192),
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
),
iphone55inch(
size: (width: 1242, height: 2208),
contentPadding: (left: 150, top: 192, right: 150, bottom: 192),
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
);
final ({int height, int width}) size;
final ({int left, int top, int right, int bottom}) contentPadding;
final String titleFontPath;
final String subtitleFontPath;
const ScreenshotLayout({
required this.size,
required this.contentPadding,
required this.titleFontPath,
required this.subtitleFontPath,
});
}