refine(quantity): drop handful, reorder scale, potted-plant icon, year dropdown

Feedback from the running app:
- Remove "handful" from the scale (redundant with spoon); keep the enum value.
- Reorder so "packet" (sobre) follows "spoon" (cuchara).
- Use the Material Symbols potted-plant for the plant lot type and plant unit
  (adds material_symbols_icons).
- Harvest year is now a dropdown of recent years instead of free text.

38 tests green; Linux build runs with the new icon font bundled.
This commit is contained in:
vjrj 2026-07-08 11:03:57 +02:00
parent 3942975dba
commit 7e92410728
6 changed files with 36 additions and 12 deletions

View file

@ -83,14 +83,17 @@ void main() {
await tester.tap(find.byKey(const Key('detail.addLot')));
await tester.pumpAndSettle();
await tester.enterText(find.byKey(const Key('addLot.year')), '2023');
await tester.tap(find.text('handful')); // pick the unit from the scale
await tester.tap(find.byKey(const Key('addLot.year')));
await tester.pumpAndSettle();
await tester.tap(find.text('2023').last); // pick the year from the dropdown
await tester.pumpAndSettle();
await tester.tap(find.text('spoon')); // pick the unit from the scale
await tester.pumpAndSettle();
await tester.enterText(find.byKey(const Key('quantity.count')), '2');
await tester.tap(find.byKey(const Key('addLot.save')));
await tester.pumpAndSettle();
expect(find.text('Year 2023 · 2 handfuls'), findsOneWidget);
expect(find.text('Year 2023 · 2 spoons'), findsOneWidget);
await disposeTree(tester);
});