From 976b76adaefa081a1b9d92275d18ba42eb4f8eb6 Mon Sep 17 00:00:00 2001 From: fuenmao <980740792@qq.com> Date: Tue, 7 Jan 2025 12:35:22 +0800 Subject: [PATCH] =?UTF-8?q?text=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../voice/meeting_main_voice_view.dart | 90 ++++++++++--------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/wgshare/lib/pages/metting/voice/meeting_main_voice_view.dart b/wgshare/lib/pages/metting/voice/meeting_main_voice_view.dart index 2ffa27c..a3d729a 100644 --- a/wgshare/lib/pages/metting/voice/meeting_main_voice_view.dart +++ b/wgshare/lib/pages/metting/voice/meeting_main_voice_view.dart @@ -57,56 +57,58 @@ class MeetingMainVoiceComponent extends StatelessWidget { ), SizedBox(height: 6.h), users[index].enableMicr == true - ? Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Container( - width: 20.w, - height: 20.h, - child: LiquidCustomProgressIndicator( - value: users[index].volume ?? 0.0, - valueColor: const AlwaysStoppedAnimation(ColorUtil.Color_2_177_136), - backgroundColor: ColorUtil.Color_255_255_255, - direction: Axis.vertical, - shapePath: ViewSvgPath.getMicrpphonePath() + ? Text.rich( + maxLines: 1, + overflow: TextOverflow.ellipsis, + TextSpan( + children: [ + WidgetSpan( + child: Container( + width: 20.w, + height: 20.h, + child: LiquidCustomProgressIndicator( + value: users[index].volume ?? 0.0, + valueColor: const AlwaysStoppedAnimation(ColorUtil.Color_2_177_136), + backgroundColor: ColorUtil.Color_255_255_255, + direction: Axis.vertical, + shapePath: ViewSvgPath.getMicrpphonePath() + ), + ) ), - ), - SizedBox( - width: 70, - child: Text( - users[index].userName, - maxLines: 1, - overflow: TextOverflow.ellipsis, + TextSpan( + text: users[index].userName, style: TextStyle( fontSize: 12.sp, color: ColorUtil.Color_255_255_255), + ), - ) - ], - ) - : Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Image.asset( - 'assets/images/meeting_main_microphone_open.png', - width: 20.w, - height: 20.h, - ), - SizedBox( - width: 70, - child: Text( - users[index].userName, - maxLines: 1, - overflow: TextOverflow.ellipsis, - style: TextStyle( - fontSize: 12.sp, - color: ColorUtil.Color_255_255_255), - ), - ) ], - ), + ), + textAlign: TextAlign.left, + ) + : Text.rich( + maxLines: 1, + overflow: TextOverflow.ellipsis, + TextSpan( + children: [ + WidgetSpan( + child: Image.asset( + 'assets/images/meeting_main_microphone_open.png', + width: 20.w, + height: 20.h, + ) + ), + TextSpan( + text: users[index].userName, + style: TextStyle( + fontSize: 12.sp, + color: ColorUtil.Color_255_255_255), + + ), + ], + ), + textAlign: TextAlign.left, + ) ], ); })),