From d453355fe8f7ee22501237e052fbeacd24d8b28b Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Tue, 2 Sep 2025 21:33:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(translation=5Fview):=20=E4=BB=85=E5=9C=A8?= =?UTF-8?q?=E9=80=9A=E8=AF=9D=E7=BF=BB=E8=AF=91=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=94=B5=E8=AF=9D=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../translation/views/translation_view.dart | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/lib/modules/translation/views/translation_view.dart b/lib/modules/translation/views/translation_view.dart index 25bb2f715..58a5d33c9 100644 --- a/lib/modules/translation/views/translation_view.dart +++ b/lib/modules/translation/views/translation_view.dart @@ -223,21 +223,17 @@ class TranslationView extends GetView { overflow: TextOverflow.ellipsis, ), ), - SizedBox(width: 4.w), - // Icon( - // Icons.public, - // size: 20.sp, - // color: isDarkMode - // ? Colors.white70 - // : Colors.grey[600], - // ), - Icon( - Icons.person_pin_circle, - size: 20.sp, - color: isDarkMode - ? Colors.white70 - : Colors.grey[600], - ), + //只在通话翻译模式下显示电话图标 + if (controller.currentMode.value == 'call') ...[ + SizedBox(width: 4.w), + Icon( + Icons.phone_in_talk, + size: 20.sp, + color: isDarkMode + ? Colors.white70 + : Colors.grey[600], + ), + ], ], )), ),