fix(flutter): 修正评论输入框高度与圆角

This commit is contained in:
Zhou Weidong committed 2026-10-20 12:16:03 +08:00
1 parent edcd25fe68
commit 8709b64dec
2 files changed
+6 -6

No files matched your search

@@ -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<DramaCommentsSheet> {
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,
+2 -2
View File
@@ -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,