feat(flutter): 重设计剧场与首页 Hero

This commit is contained in:
Zhou Weidong committed 2026-10-20 10:24:19 +08:00
1 parent 678b976ce1
commit 73aef4e44e
19 files changed
+339 -312

No files matched your search

+12
View File
@@ -38,6 +38,18 @@ void main() {
);
await _pumpApp(tester, catalog);
expect(find.byKey(const Key('feed-banner-carousel')), findsOneWidget);
expect(
tester.getSize(find.byKey(const Key('home-hero-banner'))).height,
greaterThanOrEqualTo(230),
);
expect(
tester
.widget<Text>(find.byKey(const Key('home-hero-title-0')))
.style
?.fontSize,
28,
);
expect(find.byKey(const Key('feed-banner-dot-0')), findsOneWidget);
await tester.tap(find.byKey(const Key('feed-banner-0')));
await tester.pumpAndSettle();