diff --git a/assets/images/checked.png b/assets/images/checked.png new file mode 100644 index 0000000..4552d92 Binary files /dev/null and b/assets/images/checked.png differ diff --git a/lib/widgets/chat_bubble.dart b/lib/widgets/chat_bubble.dart index 558d749..e6c60b4 100644 --- a/lib/widgets/chat_bubble.dart +++ b/lib/widgets/chat_bubble.dart @@ -145,8 +145,12 @@ class _ChatBubbleState extends State { 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 { 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 { 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 { 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 { 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)), ), ], ), diff --git a/lib/widgets/chat_footer.dart b/lib/widgets/chat_footer.dart index d4d67d0..8682d82 100644 --- a/lib/widgets/chat_footer.dart +++ b/lib/widgets/chat_footer.dart @@ -117,7 +117,7 @@ class _ChatFooterState extends State ) : Text( Intl.getCurrentLocale().startsWith('zh') - ? '按 住 说 话' + ? '按住 说话' : 'Hold to Speak', style: TextStyle( color: CommonUtil.commonColor,