feat(ui): Material 3 redesign, cover-photo viewer, About screen
Apply a Material 3 seed-green palette and rounded components across the home, inventory, quick-add, quantity picker and variety-detail screens. The full-screen photo viewer can now set any photo as the cover (via attachment sort order) and delete after confirmation. Lot forms and packaging surface as choice chips. Extract About out of Settings into its own screen (app version via package_info_plus, website link). Add es/en strings for the new lot types, presentation, home tagline and About. Update Seedees v2 mockups.
This commit is contained in:
parent
f5c36f2369
commit
42c16c0e3f
24 changed files with 1960 additions and 416 deletions
|
|
@ -23,7 +23,12 @@ void main() {
|
|||
|
||||
expect(find.text('Your inventory'), findsOneWidget);
|
||||
expect(find.text('Open market'), findsOneWidget);
|
||||
expect(find.text('Coming soon'), findsOneWidget); // market is Block 2
|
||||
expect(find.text('COMING SOON'), findsOneWidget); // market is Block 2
|
||||
|
||||
// Redesign copy: tagline + the two destination subtitles.
|
||||
expect(find.text('Share and grow local seeds'), findsOneWidget);
|
||||
expect(find.text('Manage your seeds'), findsOneWidget);
|
||||
expect(find.text('Browse and exchange'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.byKey(const Key('home.inventory')));
|
||||
await tester.pumpAndSettle();
|
||||
|
|
@ -53,6 +58,31 @@ void main() {
|
|||
await disposeTree(tester);
|
||||
});
|
||||
|
||||
testWidgets('drawer header returns to home', (tester) async {
|
||||
LocaleSettings.setLocaleSync(AppLocale.en);
|
||||
final db = newTestDatabase();
|
||||
addTearDown(db.close);
|
||||
|
||||
await tester.pumpWidget(app(db));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Navigate away from home first.
|
||||
await tester.tap(find.byKey(const Key('home.inventory')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('No seeds yet. Tap + to add your first.'), findsOneWidget);
|
||||
|
||||
// Open the drawer and tap the Tanemaki brand header.
|
||||
await tester.tap(find.byIcon(Icons.menu));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Tanemaki'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Back on the home menu.
|
||||
expect(find.text('Your inventory'), findsOneWidget);
|
||||
expect(find.text('Open market'), findsOneWidget);
|
||||
await disposeTree(tester);
|
||||
});
|
||||
|
||||
testWidgets('drawer Settings opens the settings screen', (tester) async {
|
||||
LocaleSettings.setLocaleSync(AppLocale.en);
|
||||
final db = newTestDatabase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue