Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-21 22:38:47 +08:00
parent a1555826c3
commit 17568c8c27
43 changed files with 818 additions and 932 deletions

View File

@@ -32,6 +32,7 @@ class LiveRoomChat extends StatelessWidget {
itemCount: liveRoomController.messages.length,
physics: const ClampingScrollPhysics(),
itemBuilder: (context, index) {
final item = liveRoomController.messages[index];
return Container(
alignment: Alignment.centerLeft,
padding: const EdgeInsets.symmetric(horizontal: 16),
@@ -48,8 +49,7 @@ class LiveRoomChat extends StatelessWidget {
TextSpan(
children: [
TextSpan(
text:
'${liveRoomController.messages[index]['name']}: ',
text: '${item['name']}: ',
style: TextStyle(
color: Colors.white.withValues(alpha: 0.6),
fontSize: 14,
@@ -57,14 +57,13 @@ class LiveRoomChat extends StatelessWidget {
recognizer: TapGestureRecognizer()
..onTap = () {
try {
Get.toNamed(
'/member?mid=${liveRoomController.messages[index]['uid']}');
Get.toNamed('/member?mid=${item['uid']}');
} catch (err) {
if (kDebugMode) debugPrint(err.toString());
}
},
),
_buildMsg(liveRoomController.messages[index]),
_buildMsg(item),
],
),
),