样式修改

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;
case MessageStatus.completed:
case MessageStatus.success:
icon = const Icon(Icons.check_circle, size: 16, color: Colors.green);
color = Colors.green;
icon = Image.asset(
'assets/images/checked.png',
width: 20,
height: 20
);
color = Colors.white;
break;
case MessageStatus.failure:
icon = const Icon(Icons.error, size: 16, color: Colors.red);
@@ -265,10 +269,10 @@ class _ChatBubbleState extends State<ChatBubble> {
children: [
const SizedBox(height: 6),
const Opacity(
opacity: 0.2,
child: Divider(color: Colors.grey, height: 1),
opacity: 0.08,
child: Divider(color: Colors.white, height: 1),
),
const SizedBox(height: 6),
const SizedBox(height: 12),
SizedBox(
height: 24,
child: isThinking
@@ -325,9 +329,8 @@ class _ChatBubbleState extends State<ChatBubble> {
padding: const EdgeInsets.only(left: 12),
child: Image.asset(
'assets/images/copy.png',
width: 20,
height: 20,
color: Colors.white,
width: 24,
height: 24
),
),
),
@@ -342,9 +345,9 @@ class _ChatBubbleState extends State<ChatBubble> {
padding: const EdgeInsets.only(left: 12),
child: _liked
? Image.asset('assets/images/liked2.png',
width: 20, height: 20)
width: 24, height: 24)
: Image.asset('assets/images/liked1.png',
width: 20, height: 20),
width: 24, height: 24),
),
),
InkWell(
@@ -358,9 +361,9 @@ class _ChatBubbleState extends State<ChatBubble> {
padding: const EdgeInsets.only(left: 12),
child: _disliked
? Image.asset('assets/images/disliked2.png',
width: 20, height: 20)
width: 24, height: 24)
: 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(
Intl.getCurrentLocale().startsWith('zh')
? ' 住 说 '
? '按住 说话'
: 'Hold to Speak',
style: TextStyle(
color: CommonUtil.commonColor,