opt: live dyn cover

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-22 16:49:12 +08:00
parent ea486f90e8
commit 64f66dd58f
3 changed files with 8 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ Widget liveRcmdPanel(item, context, {floor = 1}) {
Hero(
tag: liveRcmd.roomId.toString(),
child: NetworkImgLayer(
radius: 12,
type: floor == 1 ? 'emote' : null,
width: width,
height: width / StyleString.aspectRatio,
@@ -112,7 +113,7 @@ Widget liveRcmdPanel(item, context, {floor = 1}) {
],
),
borderRadius: floor == 1
? null
? const BorderRadius.all(Radius.circular(12))
: const BorderRadius.all(Radius.circular(6))),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,

View File

@@ -194,4 +194,10 @@ class LiveRoomController extends GetxController {
}
});
}
@override
void onClose() {
scrollController.dispose();
super.onClose();
}
}

View File

@@ -93,7 +93,6 @@ class _LiveRoomPageState extends State<LiveRoomPage>
plPlayerController.dispose();
_ctr.dispose();
_liveRoomController.scrollController.removeListener(() {});
_liveRoomController.scrollController.dispose();
super.dispose();
}