feat(flutter): 首页改为两列全部剧目网格

This commit is contained in:
Zhou Weidong committed 2026-10-17 17:24:45 +08:00
1 parent 99f64ab870
commit cf03178cc5
11 files changed
+498 -230

No files matched your search

+11 -11
View File
@@ -155,7 +155,7 @@ void main() {
await tester.pumpWidget(appUnderTest());
await tester.pumpAndSettle();
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(
@@ -186,15 +186,15 @@ void main() {
.active,
isFalse,
);
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
await tester.tap(find.byKey(const Key('drawer-discover')));
await tester.pumpAndSettle();
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
expect(
Navigator.of(tester.element(find.text('Continue Watching'))).canPop(),
Navigator.of(tester.element(find.text('All Dramas'))).canPop(),
isFalse,
);
},
@@ -313,7 +313,7 @@ void main() {
await tester.pumpAndSettle();
expect(find.text('For You'), findsOneWidget);
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
expect(find.text('Rewards'), findsOneWidget);
expect(find.text(r'$ 0'), findsOneWidget);
expect(find.text('Urban Romance', skipOffstage: false), findsOneWidget);
@@ -345,10 +345,10 @@ void main() {
await tester.pumpAndSettle();
await tester.tap(find.text('Home'));
await tester.pumpAndSettle();
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
expect(find.byTooltip('Search'), findsNothing);
expect(
Navigator.of(tester.element(find.text('Continue Watching'))).canPop(),
Navigator.of(tester.element(find.text('All Dramas'))).canPop(),
isFalse,
);
@@ -365,10 +365,10 @@ void main() {
await tester.tap(find.byKey(const Key('tab-discover')));
await tester.pumpAndSettle();
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
expect(find.byTooltip('Search'), findsNothing);
expect(
Navigator.of(tester.element(find.text('Continue Watching'))).canPop(),
Navigator.of(tester.element(find.text('All Dramas'))).canPop(),
isFalse,
);
await tester.tap(find.byKey(const Key('tab-my-list')));
@@ -564,7 +564,7 @@ void main() {
await tester.pumpWidget(appUnderTest());
await tester.pumpAndSettle();
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(find.text('Quick access'), findsOneWidget);
@@ -572,7 +572,7 @@ void main() {
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(find.text('Quick access'), findsNothing);
expect(find.text('Continue Watching'), findsOneWidget);
expect(find.text('All Dramas'), findsOneWidget);
expect(
Navigator.of(
tester.element(find.byKey(const Key('home-tabs-bar'))),