fix(flutter): 优化观看历史删除按钮

This commit is contained in:
Zhou Weidong committed 2026-10-20 16:34:31 +08:00
1 parent 794dc87083
commit f62324084e
2 files changed
+6 -4

No files matched your search

@@ -14,8 +14,8 @@ const double _cardPadding = 10;
const double _coverWidth = 72;
const double _coverHeight = 96;
const double _coverRadius = 10;
const double _removeSize = 28;
const double _removeIconSize = 16;
const double _removeSize = 32;
const double _removeIconSize = 18;
const double _progressHeight = 4;
const double _progressRadius = 2;
const double _statsFontSize = 12;
@@ -190,7 +190,7 @@ class WatchRecordCard extends StatelessWidget {
padding: EdgeInsets.zero,
onPressed: onRemove,
icon: const Icon(
Icons.close_rounded,
Icons.delete_outline_rounded,
size: _removeIconSize,
color: AppColors.muted,
),
+3 -1
View File
@@ -69,8 +69,10 @@ void main() {
tester.getSize(
find.byKey(const Key('watch-record-remove-the-signal-demo')),
),
const Size(28, 28),
const Size(32, 32),
);
expect(find.byIcon(Icons.delete_outline_rounded), findsOneWidget);
expect(find.byIcon(Icons.close_rounded), findsNothing);
expect(
find.byKey(const Key('watch-record-episode-the-signal-demo')),
findsOneWidget,