opt to live room

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-04 18:53:08 +08:00
parent cf84a92808
commit deb48d1ada
20 changed files with 71 additions and 43 deletions

View File

@@ -203,7 +203,13 @@ class ChatItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
GestureDetector(
onTap: () => Get.toNamed('/liveRoom?roomid=${content['sourceID']}'),
onTap: () {
var roomId = content['sourceID'];
if (roomId is String) {
roomId = int.parse(roomId);
}
PageUtils.toLiveRoom(roomId);
},
child: NetworkImgLayer(
width: 220,
height: 220 * 9 / 16,