From 8709b64dec03663af5be00021585328fca1f8c52 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Tue, 20 Oct 2026 12:16:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(flutter):=20=E4=BF=AE=E6=AD=A3=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E8=BE=93=E5=85=A5=E6=A1=86=E9=AB=98=E5=BA=A6=E4=B8=8E?= =?UTF-8?q?=E5=9C=86=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/player/widgets/drama_comments_sheet.dart | 8 ++++---- test/comment/drama_comments_sheet_test.dart | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/pages/player/widgets/drama_comments_sheet.dart b/lib/pages/player/widgets/drama_comments_sheet.dart index e93892b..6576a35 100644 --- a/lib/pages/player/widgets/drama_comments_sheet.dart +++ b/lib/pages/player/widgets/drama_comments_sheet.dart @@ -22,9 +22,9 @@ import 'comment_tile.dart'; const double _minSheetHeight = 280; const double _maxSheetHeight = 520; const int _maxCommentLength = 300; -const double _composerRadius = 22; -const double _composerHeight = 44; -const double _sendButtonSize = 36; +const double _composerRadius = 12; +const double _composerHeight = 52; +const double _sendButtonSize = 40; const double _sheetRadius = 20; /// 服务端评论底部弹窗:匿名列表、游标翻页、回复、点赞和本人删除。 @@ -343,7 +343,7 @@ class _DramaCommentsSheetState extends State { counterText: '', filled: true, fillColor: AppColors.commentInput, - contentPadding: const EdgeInsets.symmetric(horizontal: 14), + contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14), isDense: true, border: clear, enabledBorder: clear, diff --git a/test/comment/drama_comments_sheet_test.dart b/test/comment/drama_comments_sheet_test.dart index 305c646..f23ad4a 100644 --- a/test/comment/drama_comments_sheet_test.dart +++ b/test/comment/drama_comments_sheet_test.dart @@ -142,9 +142,9 @@ void main() { expect( tester.getSize(find.byKey(const Key('comment-post'))), - const Size(36, 36), + const Size(40, 40), ); - expect(tester.getSize(find.byKey(const Key('comment-input'))).height, 44); + expect(tester.getSize(find.byKey(const Key('comment-input'))).height, 52); expect( find.byKey(const Key('player-comments-drag-handle')), findsOneWidget,