added screenshots config json

This commit is contained in:
Vadim 2024-05-14 13:47:11 +02:00
parent e91da61238
commit d7a42fd73f
2 changed files with 39 additions and 4 deletions

View file

@ -0,0 +1,29 @@
{
"screenshots": [
{
"screenshotName": "light-metering_reflected",
"title": "Quick & easy to use",
"subtitle": "with all the necessary controls\nunder your thumb"
},
{
"screenshotName": "light-metering_iso_picker",
"title": "Lots of ISO values",
"subtitle": "From 3 and up to 6400"
},
{
"screenshotName": "light-settings",
"title": "Useful settings",
"subtitle": "to get the most accurate\nmetering results"
},
{
"screenshotName": "light-equipment_profiles",
"title": "Create multiple profiles",
"subtitle": "to match your\ncamera & lens setups"
},
{
"screenshotName": "dark-metering_reflected",
"title": "Matches your style",
"subtitle": "with various theme types and color"
}
]
}

View file

@ -1,15 +1,21 @@
import 'dart:convert';
class ScreenshotConfig { class ScreenshotConfig {
final String title; final String title;
final String subtitle; final String subtitle;
final String screenshotPath; final String screenshotName;
const ScreenshotConfig({ const ScreenshotConfig({
required this.title, required this.title,
required this.subtitle, required this.subtitle,
required this.screenshotPath, required this.screenshotName,
}); });
factory ScreenshotConfig.fromJson(Map<String, dynamic> data) {
return ScreenshotConfig(
title: data['title'] as String,
subtitle: data['subtitle'] as String,
screenshotName: data['screenshotName'] as String,
);
}
} }
enum ScreenshotLayout { enum ScreenshotLayout {