From f62324084efd6dfcdc7e6cbc1f6543cfa18320cb Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Tue, 20 Oct 2026 16:34:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(flutter):=20=E4=BC=98=E5=8C=96=E8=A7=82?= =?UTF-8?q?=E7=9C=8B=E5=8E=86=E5=8F=B2=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/watch_records/widgets/watch_record_card.dart | 6 +++--- test/watch/watch_records_page_test.dart | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/pages/watch_records/widgets/watch_record_card.dart b/lib/pages/watch_records/widgets/watch_record_card.dart index fdedd38..5bb67cc 100644 --- a/lib/pages/watch_records/widgets/watch_record_card.dart +++ b/lib/pages/watch_records/widgets/watch_record_card.dart @@ -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, ), diff --git a/test/watch/watch_records_page_test.dart b/test/watch/watch_records_page_test.dart index 22eb59a..6818cd6 100644 --- a/test/watch/watch_records_page_test.dart +++ b/test/watch/watch_records_page_test.dart @@ -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,