fix(home): 重绘二级筛选三线图标
This commit is contained in:
1 parent
8197abd55d
commit
448010115f
5 files changed
+48
-13
No files matched your search
@@ -98,14 +98,22 @@ void main() {
|
||||
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),
|
||||
),
|
||||
final filterIcon = tester.widget<CustomPaint>(
|
||||
find.byKey(const Key('home-secondary-filter-icon')),
|
||||
);
|
||||
expect(filterIcon.size, AppDimens.homeSecondaryFilterIcon);
|
||||
expect(filterIcon.color, AppColors.textTertiary);
|
||||
expect(
|
||||
filterIcon.size,
|
||||
const Size.square(AppDimens.homeSecondaryFilterIcon),
|
||||
);
|
||||
final filterMaterial = tester.widget<Material>(
|
||||
find
|
||||
.ancestor(
|
||||
of: find.byKey(const Key('home-grid-filter')),
|
||||
matching: find.byType(Material),
|
||||
)
|
||||
.first,
|
||||
);
|
||||
expect(filterMaterial.color, AppColors.transparent);
|
||||
final searchBox = find.descendant(
|
||||
of: find.byKey(const Key('home-search-entry')),
|
||||
matching: find.byType(Container),
|
||||
|
||||
Reference in new issue
Block a user