feat(screenshots): CC0/PD example photos for all visible varieties (+CREDITS)
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 350 KiB |
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 132 KiB |
13
apps/app_seeds/test/screenshots/fixtures/CREDITS.md
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Example inventory photos — credits
|
||||||
|
|
||||||
|
CC0 / public-domain images used as example variety photos in the screenshot
|
||||||
|
harness only (to generate store/landing screenshots). They are **not** bundled
|
||||||
|
in the app. Square-cropped and re-compressed from the originals below.
|
||||||
|
|
||||||
|
| Fixture | Subject | Author | License | Source |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| maize.jpg | Red & white flint corn | vjrj (Tane project) | own photo | — |
|
||||||
|
| buckwheat.jpg | Fagopyrum esculentum (buckwheat) | Daderot | CC0 | https://commons.wikimedia.org/wiki/File:Fagopyrum_esculentum_-_Osaka_Museum_of_Natural_History_-_DSC07737.JPG |
|
||||||
|
| tomato.jpg | Ripe red tomatoes | Glenda Green | CC0 | https://commons.wikimedia.org/wiki/File:Ripe_Red_Tomatoes.jpg |
|
||||||
|
| pepper.jpg | Capsicum annuum (Guajillo), dried | ZooFari | Public domain | https://commons.wikimedia.org/wiki/File:Capsicum_annuum_(Guajillo)_-_dried.jpg |
|
||||||
|
| raspberry.jpg | Rubus idaeus (raspberry) | Vassil | Public domain | https://commons.wikimedia.org/wiki/File:Framboise_Margy_3.jpg |
|
||||||
BIN
apps/app_seeds/test/screenshots/fixtures/buckwheat.jpg
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
apps/app_seeds/test/screenshots/fixtures/pepper.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
apps/app_seeds/test/screenshots/fixtures/raspberry.jpg
Normal file
|
After Width: | Height: | Size: 143 KiB |
BIN
apps/app_seeds/test/screenshots/fixtures/tomato.jpg
Normal file
|
After Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 350 KiB |
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 207 KiB After Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 129 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 351 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 351 KiB |
|
|
@ -168,13 +168,17 @@ Future<SeededInventory> seedShowcase(
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A real photo of red & white flint corn is the hero variety, so the detail
|
// Example photos are CC0 / public domain (see fixtures/CREDITS.md), except the
|
||||||
// shot shows a genuine seed photo. Loaded from the committed test fixture
|
// maize which is vjrj's own; loaded from the committed fixtures (CWD is the
|
||||||
// (CWD is the package root under `flutter test`).
|
// package root under `flutter test`). The maize is the hero for the detail shot.
|
||||||
final maizePhoto = await File(
|
Future<Uint8List> photo(String name) =>
|
||||||
'test/screenshots/fixtures/maize.jpg',
|
File('test/screenshots/fixtures/$name.jpg').readAsBytes();
|
||||||
).readAsBytes();
|
|
||||||
final maize = await add('Painted flint corn', 'Poaceae', photo: maizePhoto);
|
final maize = await add(
|
||||||
|
'Painted flint corn',
|
||||||
|
'Poaceae',
|
||||||
|
photo: await photo('maize'),
|
||||||
|
);
|
||||||
await repo.addLot(
|
await repo.addLot(
|
||||||
varietyId: maize,
|
varietyId: maize,
|
||||||
harvestYear: 2024,
|
harvestYear: 2024,
|
||||||
|
|
@ -190,12 +194,12 @@ Future<SeededInventory> seedShowcase(
|
||||||
offerStatus: OfferStatus.exchange,
|
offerStatus: OfferStatus.exchange,
|
||||||
);
|
);
|
||||||
|
|
||||||
// The rest sit in families that sort at/after Poaceae, so the maize (and its
|
// The rest sit in families that sort at/after Poaceae, so the maize stays the
|
||||||
// photo) stays the first, top-of-list group in the inventory shot.
|
// first, top-of-list group in the inventory shot. Each carries a CC0/PD photo.
|
||||||
await add('Common buckwheat', 'Polygonaceae');
|
await add('Common buckwheat', 'Polygonaceae', photo: await photo('buckwheat'));
|
||||||
await add('Alpine strawberry', 'Rosaceae');
|
await add('Wild raspberry', 'Rosaceae', photo: await photo('raspberry'));
|
||||||
await add('Cherry tomato', 'Solanaceae');
|
await add('Slicing tomato', 'Solanaceae', photo: await photo('tomato'));
|
||||||
await add('Sweet pepper', 'Solanaceae');
|
await add('Guajillo chilli', 'Solanaceae', photo: await photo('pepper'));
|
||||||
|
|
||||||
return SeededInventory(maize);
|
return SeededInventory(maize);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 350 KiB |
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 207 KiB After Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 129 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 351 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 351 KiB |
|
Before Width: | Height: | Size: 319 KiB After Width: | Height: | Size: 330 KiB |
|
Before Width: | Height: | Size: 324 KiB After Width: | Height: | Size: 334 KiB |