miler map

This commit is contained in:
2026-09-09 12:55:23 +05:30
parent 074cc0eccf
commit 127fa062ed
143 changed files with 4315 additions and 2291 deletions

View File

@@ -102,7 +102,10 @@ void main() {
// rather than in the grey reserved for metadata.
final label = tester.widget<Text>(find.text('Who received it?'));
expect(label.style!.color, ColorConstants.slateText);
expect(label.style!.fontWeight, FontWeight.w700);
// One grade heavier than this once read: the app was set in Poppins on a
// scale stepped down to compensate for that face, and is back on Manrope
// with the scale restored. See `FontConstants`.
expect(label.style!.fontWeight, FontWeight.w800);
// What has not changed, and must not: it is still quieter than the stop it
// belongs to. The customer's name is the subject of the screen; a step
@@ -125,16 +128,27 @@ void main() {
}
});
testWidgets('an odd picker gives its last option the full row', (
testWidgets('an odd picker keeps its last option in its column', (
tester,
) async {
await pump(tester, stopOf(type: 'pickup', pickupQty: 2));
// Three conditions. The third at half width on a line of its own is an
// orphan; at full width it is a second row.
// ── This used to assert the opposite, and it fought the test above ──
//
// The rule was that a third option at half width is an orphan, so it took
// the full row. But the picker two tests up exists to make every option the
// *same* width — natural-width chips packing three-then-one "reads as a
// list that ran out rather than as a set of four equal choices" — and a
// stretched third option is that same inequality, introduced deliberately.
//
// Size is emphasis. Stretching the odd one put the largest target on the
// screen under `Damaged`: the rarest condition and the one with the worst
// consequence, drawn twice the size of `Sealed & intact`. This set has no
// reason to emphasise its exception, and a grid with an empty cell in its
// last row is simply what a grid looks like.
expect(
chipWidth(tester, 'Damaged'),
greaterThan(chipWidth(tester, 'Sealed & intact') * 1.8),
closeTo(chipWidth(tester, 'Sealed & intact'), 0.5),
);
});