样式修改

This commit is contained in:
Chen Li
2025-08-13 11:30:53 +08:00
parent da2a103920
commit ead5cf378d
3 changed files with 16 additions and 13 deletions

BIN
assets/images/checked.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

View File

@@ -145,8 +145,12 @@ class _ChatBubbleState extends State<ChatBubble> {
break; break;
case MessageStatus.completed: case MessageStatus.completed:
case MessageStatus.success: case MessageStatus.success:
icon = const Icon(Icons.check_circle, size: 16, color: Colors.green); icon = Image.asset(
color = Colors.green; 'assets/images/checked.png',
width: 20,
height: 20
);
color = Colors.white;
break; break;
case MessageStatus.failure: case MessageStatus.failure:
icon = const Icon(Icons.error, size: 16, color: Colors.red); icon = const Icon(Icons.error, size: 16, color: Colors.red);
@@ -265,10 +269,10 @@ class _ChatBubbleState extends State<ChatBubble> {
children: [ children: [
const SizedBox(height: 6), const SizedBox(height: 6),
const Opacity( const Opacity(
opacity: 0.2, opacity: 0.08,
child: Divider(color: Colors.grey, height: 1), child: Divider(color: Colors.white, height: 1),
), ),
const SizedBox(height: 6), const SizedBox(height: 12),
SizedBox( SizedBox(
height: 24, height: 24,
child: isThinking child: isThinking
@@ -325,9 +329,8 @@ class _ChatBubbleState extends State<ChatBubble> {
padding: const EdgeInsets.only(left: 12), padding: const EdgeInsets.only(left: 12),
child: Image.asset( child: Image.asset(
'assets/images/copy.png', 'assets/images/copy.png',
width: 20, width: 24,
height: 20, height: 24
color: Colors.white,
), ),
), ),
), ),
@@ -342,9 +345,9 @@ class _ChatBubbleState extends State<ChatBubble> {
padding: const EdgeInsets.only(left: 12), padding: const EdgeInsets.only(left: 12),
child: _liked child: _liked
? Image.asset('assets/images/liked2.png', ? Image.asset('assets/images/liked2.png',
width: 20, height: 20) width: 24, height: 24)
: Image.asset('assets/images/liked1.png', : Image.asset('assets/images/liked1.png',
width: 20, height: 20), width: 24, height: 24),
), ),
), ),
InkWell( InkWell(
@@ -358,9 +361,9 @@ class _ChatBubbleState extends State<ChatBubble> {
padding: const EdgeInsets.only(left: 12), padding: const EdgeInsets.only(left: 12),
child: _disliked child: _disliked
? Image.asset('assets/images/disliked2.png', ? Image.asset('assets/images/disliked2.png',
width: 20, height: 20) width: 24, height: 24)
: Image.asset('assets/images/disliked1.png', : Image.asset('assets/images/disliked1.png',
width: 20, height: 20)), width: 24, height: 24)),
), ),
], ],
), ),

View File

@@ -117,7 +117,7 @@ class _ChatFooterState extends State<ChatFooter>
) )
: Text( : Text(
Intl.getCurrentLocale().startsWith('zh') Intl.getCurrentLocale().startsWith('zh')
? ' 住 说 ' ? '按住 说话'
: 'Hold to Speak', : 'Hold to Speak',
style: TextStyle( style: TextStyle(
color: CommonUtil.commonColor, color: CommonUtil.commonColor,