From ead5cf378d5ea7114926f9e6a267da27a540399b Mon Sep 17 00:00:00 2001 From: Chen Li <422043296@qq.com> Date: Wed, 13 Aug 2025 11:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/images/checked.png | Bin 0 -> 1017 bytes lib/widgets/chat_bubble.dart | 27 +++++++++++++++------------ lib/widgets/chat_footer.dart | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 assets/images/checked.png diff --git a/assets/images/checked.png b/assets/images/checked.png new file mode 100644 index 0000000000000000000000000000000000000000..4552d921bcc16d1050be7216f8a510e9310f23b8 GIT binary patch literal 1017 zcmVlx}Eur6;JnZ7V@<5H5fX zR6=TGzrL~Kk2vG_+X)gsDT+NF$N#@)=FRvy01wO;1{J{jW(#gr4H$cYh#f#&r{dQ5 zBe3X7L%N*B7`ve3KVaE5^nTldl9V#Q4{kLQd>9d&^Xlx31botuSI(dyg$(fC%_f2n z4(m`2Lk8?fAFP}}PI4LGZ_Eyk)Q@z>HK+py7i`Jd(%-g+Sx-^2R^03T-N%2*d2Qka z)S}`VynD^Fo|35r_PV!+44ghR2!hi8FjziHtCwnE9^!qnn3!o`p5lGdOe7i*eV(DM z!va7eU+aTaJ>l3iZnO~twn%KR2a7#+He}IB8ijDAe1*jkFKD^pTf&q9-o4qWaDu81 z3g5hEZpMqJ47fAwf?t%rdGUl32AW6|!rT*A=I9ZrUs^nY z41${-Mj^}>KJ!M8s>F{8Znh#TOd~EvY|mbe&drVjPsf zH*t04z}+3zBAy|9izbC9o(CASj}R3NN+3+6&B~=voRjG8R90fYcYVH)&%_?X_k-27 zXu;G>Oo^=2bl$v>X_MxK_Io$qYfa)7fKldJKVIF4mrK_|%(i!-L`13q3v6dgc0g)? zBGPb?x{}Z$G|7%7u157iTVDhdu6WXtd^`o-HT$xJQWK2D_h;A1z&uQ35%1N@2$|qx z6Llwjt+Z|vCErUvPHA_QGS@Xtbo36{pf%ZU(twqo0|lVg*crD*2P#0sco28}xSjib zak&@WBHfMZHf6Lo3!Lt~wWsx${;q96L8|$y0p(RerF5U8Xy7Kuu!UZlCitrXb0 { 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,