fix(flutter): 统一详情页顶部圆形按钮

This commit is contained in:
Zhou Weidong committed 2026-10-20 16:15:53 +08:00
1 parent 230f16a44a
commit c1dd033581
4 files changed
+97 -62

No files matched your search

@@ -94,6 +94,20 @@ void main() {
expect(tester.getSize(find.byKey(const Key('detail-cta'))).height, 46);
expect(find.byKey(const Key('detail-share')), findsOneWidget);
expect(find.byKey(const Key('detail-more')), findsOneWidget);
for (final key in const [Key('detail-share'), Key('detail-more')]) {
expect(tester.getSize(find.byKey(key)), const Size(40, 40));
expect(
tester
.widget<Material>(
find.descendant(
of: find.byKey(key),
matching: find.byType(Material),
),
)
.color,
const Color(0x59000000),
);
}
await tester.tap(find.byKey(const Key('detail-more')));
await tester.pumpAndSettle();