fix(screenshots): precache asset images so the home logo renders; explain the Plantare name
This commit is contained in:
parent
a3697e6b3e
commit
bb5d09bc6a
8 changed files with 35 additions and 18 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 124 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 124 KiB |
|
|
@ -61,6 +61,15 @@ void main() {
|
||||||
addTearDown(tester.view.resetPhysicalSize);
|
addTearDown(tester.view.resetPhysicalSize);
|
||||||
addTearDown(tester.view.resetDevicePixelRatio);
|
addTearDown(tester.view.resetDevicePixelRatio);
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
// Asset images (e.g. the home logo) decode via real async that the fake
|
||||||
|
// test clock doesn't drive, so they'd paint blank. Precache them for real,
|
||||||
|
// then repaint, so they show up in the golden.
|
||||||
|
await tester.runAsync(() async {
|
||||||
|
for (final element in find.byType(Image).evaluate()) {
|
||||||
|
await precacheImage((element.widget as Image).image, element);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
await tester.pumpAndSettle();
|
||||||
await expectLater(
|
await expectLater(
|
||||||
find.byType(MaterialApp),
|
find.byType(MaterialApp),
|
||||||
matchesGoldenFile('goldens/$dir/$name.png'),
|
matchesGoldenFile('goldens/$dir/$name.png'),
|
||||||
|
|
|
||||||
|
|
@ -66,11 +66,13 @@ para poner el arroz a circular. Siglos después, esa misma idea inspiró redes m
|
||||||
el *WAT* japonés (2000): un vale que cualquiera imprime y pone a circular, sin banco ni
|
el *WAT* japonés (2000): un vale que cualquiera imprime y pone a circular, sin banco ni
|
||||||
centro.
|
centro.
|
||||||
|
|
||||||
Tane hereda ese espíritu. Cuando compartes semillas puedes acompañarlas de un **Plantare**:
|
Tane hereda ese espíritu. Cuando compartes semillas puedes acompañarlas de un **Plantare**.
|
||||||
una promesa de devolver, cuando puedas, una cantidad parecida de semilla libre. No es una
|
El nombre juega con *pagaré* —la promesa de pago de toda la vida—, pero cambiando *pagar*
|
||||||
compra ni una obligación: es el compromiso de mantener la semilla viva y en movimiento. Y
|
por *plantar*: aquí no firmas un «pagaré», sino un «plantaré». Es la promesa de devolver,
|
||||||
como para devolverla hay que cultivarla, y al cultivarla se multiplica, cada gesto hace
|
cuando puedas, una cantidad parecida de semilla libre. No es una compra ni una obligación:
|
||||||
crecer el común en lugar de agotarlo.
|
es el compromiso de mantener la semilla viva y en movimiento. Y como para devolverla hay
|
||||||
|
que cultivarla, y al cultivarla se multiplica, cada gesto hace crecer el común en lugar de
|
||||||
|
agotarlo.
|
||||||
|
|
||||||
## En qué punto está y cómo ayudar
|
## En qué punto está y cómo ayudar
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,12 @@ An exchange network with no centre, held together by trust, where a scrap of pap
|
||||||
enough to set rice in motion. Centuries later, that same idea inspired modern networks such
|
enough to set rice in motion. Centuries later, that same idea inspired modern networks such
|
||||||
as Japan's *WAT system* (2000): a note anyone can print and pass on, with no bank or centre.
|
as Japan's *WAT system* (2000): a note anyone can print and pass on, with no bank or centre.
|
||||||
|
|
||||||
Tane inherits that spirit. When you share seeds you can attach a **Plantare**: a promise to
|
Tane inherits that spirit. When you share seeds you can attach a **Plantare**. The name
|
||||||
return, when you can, a similar amount of free seed. It isn't a purchase or an obligation —
|
plays on the Spanish *pagaré* — an IOU, literally "I will pay" — with *pay* swapped for
|
||||||
it's a commitment to keep the seed alive and moving. And because returning it means growing
|
*plant*: not "I will pay" but "I will plant". It's a promise to return, when you can, a
|
||||||
it, and growing multiplies it, every gesture makes the commons grow instead of shrinking it.
|
similar amount of free seed. It isn't a purchase or an obligation — it's a commitment to
|
||||||
|
keep the seed alive and moving. And because returning it means growing it, and growing
|
||||||
|
multiplies it, every gesture makes the commons grow instead of shrinking it.
|
||||||
|
|
||||||
## Where it stands and how to help
|
## Where it stands and how to help
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 124 KiB |
|
|
@ -69,10 +69,12 @@ An exchange network with no centre, held together by trust, where a scrap of pap
|
||||||
enough to set rice in motion. Centuries later, that same idea inspired modern networks such
|
enough to set rice in motion. Centuries later, that same idea inspired modern networks such
|
||||||
as Japan's *WAT system* (2000): a note anyone can print and pass on, with no bank or centre.
|
as Japan's *WAT system* (2000): a note anyone can print and pass on, with no bank or centre.
|
||||||
|
|
||||||
Tane inherits that spirit. When you share seeds you can attach a **Plantare**: a promise to
|
Tane inherits that spirit. When you share seeds you can attach a **Plantare**. The name
|
||||||
return, when you can, a similar amount of free seed. It isn't a purchase or an obligation —
|
plays on the Spanish *pagaré* — an IOU, literally "I will pay" — with *pay* swapped for
|
||||||
it's a commitment to keep the seed alive and moving. And because returning it means growing
|
*plant*: not "I will pay" but "I will plant". It's a promise to return, when you can, a
|
||||||
it, and growing multiplies it, every gesture makes the commons grow instead of shrinking it.
|
similar amount of free seed. It isn't a purchase or an obligation — it's a commitment to
|
||||||
|
keep the seed alive and moving. And because returning it means growing it, and growing
|
||||||
|
multiplies it, every gesture makes the commons grow instead of shrinking it.
|
||||||
|
|
||||||
## Where it stands and how to help
|
## Where it stands and how to help
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,11 +72,13 @@ para poner el arroz a circular. Siglos después, esa misma idea inspiró redes m
|
||||||
el *WAT* japonés (2000): un vale que cualquiera imprime y pone a circular, sin banco ni
|
el *WAT* japonés (2000): un vale que cualquiera imprime y pone a circular, sin banco ni
|
||||||
centro.
|
centro.
|
||||||
|
|
||||||
Tane hereda ese espíritu. Cuando compartes semillas puedes acompañarlas de un **Plantare**:
|
Tane hereda ese espíritu. Cuando compartes semillas puedes acompañarlas de un **Plantare**.
|
||||||
una promesa de devolver, cuando puedas, una cantidad parecida de semilla libre. No es una
|
El nombre juega con *pagaré* —la promesa de pago de toda la vida—, pero cambiando *pagar*
|
||||||
compra ni una obligación: es el compromiso de mantener la semilla viva y en movimiento. Y
|
por *plantar*: aquí no firmas un «pagaré», sino un «plantaré». Es la promesa de devolver,
|
||||||
como para devolverla hay que cultivarla, y al cultivarla se multiplica, cada gesto hace
|
cuando puedas, una cantidad parecida de semilla libre. No es una compra ni una obligación:
|
||||||
crecer el común en lugar de agotarlo.
|
es el compromiso de mantener la semilla viva y en movimiento. Y como para devolverla hay
|
||||||
|
que cultivarla, y al cultivarla se multiplica, cada gesto hace crecer el común en lugar de
|
||||||
|
agotarlo.
|
||||||
|
|
||||||
## En qué punto está y cómo ayudar
|
## En qué punto está y cómo ayudar
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue