fix: rcmd controller

This commit is contained in:
bggRGjQaUbCoE
2024-09-08 14:55:56 +08:00
parent 70882c85c6
commit 15c5755392
2 changed files with 4 additions and 5 deletions

View File

@@ -31,10 +31,9 @@ class RcmdPage extends StatefulWidget {
class _RcmdPageState extends State<RcmdPage>
with AutomaticKeepAliveClientMixin {
late final PopupController _controller = Get.put(
widget.tabType == TabType.rcmd ? RcmdController() : LiveController(),
tag: widget.tabType.name,
);
late final PopupController _controller = widget.tabType == TabType.rcmd
? Get.put<RcmdController>(RcmdController())
: Get.put<LiveController>(LiveController());
@override
bool get wantKeepAlive => true;