fix(home): 调整二级筛选按钮尺寸

This commit is contained in:
Zhou Weidong committed 2026-10-22 18:36:30 +08:00
1 parent 368fbe7ef1
commit c6f3e3fa68
4 files changed
+27 -9

No files matched your search

+12
View File
@@ -94,6 +94,18 @@ void main() {
expect(find.byKey(const Key('home-section-category-社群')), findsOneWidget);
expect(find.byKey(const Key('home-secondary-tags')), findsOneWidget);
expect(find.byKey(const Key('home-grid-filter')), findsOneWidget);
expect(
tester.getSize(find.byKey(const Key('home-grid-filter'))),
const Size.square(AppDimens.tapTarget),
);
final filterIcon = tester.widget<Icon>(
find.descendant(
of: find.byKey(const Key('home-grid-filter')),
matching: find.byIcon(Icons.filter_list_rounded),
),
);
expect(filterIcon.size, AppDimens.homeSecondaryFilterIcon);
expect(filterIcon.color, AppColors.textTertiary);
final searchBox = find.descendant(
of: find.byKey(const Key('home-search-entry')),
matching: find.byType(Container),