smaller font size

This commit is contained in:
Chen Li
2025-08-22 17:07:12 +08:00
parent d2546d7dbb
commit 926f162287
2 changed files with 3 additions and 10 deletions

View File

@@ -17,13 +17,6 @@ class ChatBox extends StatelessWidget {
constraints: const BoxConstraints( constraints: const BoxConstraints(
minHeight: 60, minHeight: 60,
), ),
decoration: BoxDecoration(
border: Border.all(
color: Colors.grey, // 边框颜色
width: 1.0, // 边框宽度
),
borderRadius: BorderRadius.circular(8.0), // 边框圆角
),
child: ListView.builder( child: ListView.builder(
controller: scrollController, controller: scrollController,
itemCount: messages.length, itemCount: messages.length,

View File

@@ -82,7 +82,7 @@ class _ChatBubbleState extends State<ChatBubble> {
_buildStatusRow(hasBottomMargin: true), _buildStatusRow(hasBottomMargin: true),
Text( Text(
message.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<ChatBubble> {
} }
static final MarkdownStyleSheet _markdownStyleSheet = MarkdownStyleSheet( 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( h1: const TextStyle(
fontSize: 20, fontWeight: FontWeight.bold, color: Colors.white), fontSize: 20, fontWeight: FontWeight.bold, color: Colors.white),
h2: const TextStyle( h2: const TextStyle(
@@ -284,7 +284,7 @@ class _ChatBubbleState extends State<ChatBubble> {
? '内容由AI生成具体以实际情况为准' ? '内容由AI生成具体以实际情况为准'
: 'Generated by AI, for reference only.', : 'Generated by AI, for reference only.',
style: style:
const TextStyle(fontSize: 12, color: Colors.grey), const TextStyle(fontSize: 11, color: Colors.grey),
), ),
), ),
Row( Row(