From 926f162287812e8f1c3d169dbdc31afe446bc27d Mon Sep 17 00:00:00 2001 From: Chen Li <422043296@qq.com> Date: Fri, 22 Aug 2025 17:07:12 +0800 Subject: [PATCH] smaller font size --- lib/widgets/chat_box.dart | 7 ------- lib/widgets/chat_bubble.dart | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/lib/widgets/chat_box.dart b/lib/widgets/chat_box.dart index 3ee9090..44d84d9 100644 --- a/lib/widgets/chat_box.dart +++ b/lib/widgets/chat_box.dart @@ -17,13 +17,6 @@ class ChatBox extends StatelessWidget { constraints: const BoxConstraints( minHeight: 60, ), - decoration: BoxDecoration( - border: Border.all( - color: Colors.grey, // 边框颜色 - width: 1.0, // 边框宽度 - ), - borderRadius: BorderRadius.circular(8.0), // 边框圆角 - ), child: ListView.builder( controller: scrollController, itemCount: messages.length, diff --git a/lib/widgets/chat_bubble.dart b/lib/widgets/chat_bubble.dart index 7ed913d..e9b8971 100644 --- a/lib/widgets/chat_bubble.dart +++ b/lib/widgets/chat_bubble.dart @@ -82,7 +82,7 @@ class _ChatBubbleState extends State { _buildStatusRow(hasBottomMargin: true), Text( message.text, - style: TextStyle(color: Colors.white, fontSize: 16), + style: TextStyle(color: Colors.white, fontSize: 14), ) ], ], @@ -195,7 +195,7 @@ class _ChatBubbleState extends State { } static final MarkdownStyleSheet _markdownStyleSheet = MarkdownStyleSheet( - p: const TextStyle(fontSize: 16, color: Colors.white, height: 1.5), + p: const TextStyle(fontSize: 14, color: Colors.white, height: 1.5), h1: const TextStyle( fontSize: 20, fontWeight: FontWeight.bold, color: Colors.white), h2: const TextStyle( @@ -284,7 +284,7 @@ class _ChatBubbleState extends State { ? '内容由AI生成,具体以实际情况为准' : 'Generated by AI, for reference only.', style: - const TextStyle(fontSize: 12, color: Colors.grey), + const TextStyle(fontSize: 11, color: Colors.grey), ), ), Row(