feat(ui): About in drawer; higher-contrast app icon & splash
Add an "About" entry to the navigation drawer (below Settings) so the About screen is reachable without opening Settings first. Recolour the launcher icon and native splash to a white sprout on brand green (#2F7D34) — the previous dark-green-on-light-green had almost no contrast. Regenerate Android, iOS and web icons and the light/dark splash.
This commit is contained in:
parent
9558115c1e
commit
c9e93f7e27
65 changed files with 36 additions and 10 deletions
|
|
@ -24,6 +24,24 @@ void main() {
|
|||
);
|
||||
});
|
||||
|
||||
testWidgets('drawer About item opens the About screen', (tester) async {
|
||||
LocaleSettings.setLocaleSync(AppLocale.en);
|
||||
final db = newTestDatabase();
|
||||
addTearDown(db.close);
|
||||
|
||||
await tester.pumpWidget(app(db));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byIcon(Icons.menu));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('About')); // drawer entry
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('種まき'), findsOneWidget);
|
||||
expect(find.textContaining('digital Plantare'), findsOneWidget);
|
||||
await disposeTree(tester);
|
||||
});
|
||||
|
||||
testWidgets('Settings About tile opens the About screen', (tester) async {
|
||||
LocaleSettings.setLocaleSync(AppLocale.en);
|
||||
final db = newTestDatabase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue