Browse Source

fix(translation_view): 仅在通话翻译模式下显示电话图标

weicu
lxm 1 year ago
parent
commit
d453355fe8
  1. 12
      lib/modules/translation/views/translation_view.dart

12
lib/modules/translation/views/translation_view.dart

@ -223,22 +223,18 @@ class TranslationView extends GetView<TranslationController> {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
//只在通话翻译模式下显示电话图标
if (controller.currentMode.value == 'call') ...[
SizedBox(width: 4.w), SizedBox(width: 4.w),
// Icon(
// Icons.public,
// size: 20.sp,
// color: isDarkMode
// ? Colors.white70
// : Colors.grey[600],
// ),
Icon( Icon(
Icons.person_pin_circle, Icons.phone_in_talk,
size: 20.sp, size: 20.sp,
color: isDarkMode color: isDarkMode
? Colors.white70 ? Colors.white70
: Colors.grey[600], : Colors.grey[600],
), ),
], ],
],
)), )),
), ),
), ),

Loading…
Cancel
Save