取消Get.delete显示销毁

This commit is contained in:
fuenmao 2024-12-02 15:02:47 +08:00
parent 3a3f9cb665
commit 535eb2e54e
9 changed files with 1 additions and 41 deletions

View File

@ -190,7 +190,6 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
@override @override
void dispose() { void dispose() {
Get.delete<HomeLogic>();
_timer?.cancel(); _timer?.cancel();
super.dispose(); super.dispose();
} }

View File

@ -383,10 +383,4 @@ class _LoginPageState extends State<LoginPage> {
), ),
); );
} }
@override
void dispose() {
Get.delete<LoginLogic>();
super.dispose();
}
} }

View File

@ -370,7 +370,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
}); });
} }
/// ///
Future<void> joinMeetingToSocket() async { Future<void> joinMeetingToSocket() async {
await state.hubConnection.value?.invoke("joinChannel", args: [state.roomNumber.value, false, false, false]); await state.hubConnection.value?.invoke("joinChannel", args: [state.roomNumber.value, false, false, false]);
mergeFetch(); mergeFetch();

View File

@ -400,11 +400,6 @@ class MeetingMainPage extends StatelessWidget {
))); )));
} }
@override
void dispose() {
Get.delete<MeetingMainLogic>();
}
/// 退 /// 退
Widget leaveBottomSheet(BuildContext context) { Widget leaveBottomSheet(BuildContext context) {
return Container( return Container(

View File

@ -129,9 +129,4 @@ class MeetingMainShareComponent extends StatelessWidget {
), ),
); );
} }
@override
void dispose() {
Get.delete<MeetingMainShareLogic>();
}
} }

View File

@ -255,9 +255,4 @@ class MeetingMainVideoComponent extends StatelessWidget {
], ],
); );
} }
@override
void dispose() {
Get.delete<MeetingMainVideoLogic>();
}
} }

View File

@ -102,9 +102,4 @@ class MeetingMainVoiceComponent extends StatelessWidget {
})), })),
); );
} }
@override
void dispose() {
Get.delete<MeetingMainVoiceLogic>();
}
} }

View File

@ -95,10 +95,4 @@ class _StartPageState extends State<StartPage> {
body: Obx(() => pages[state.currentIndex.value]) body: Obx(() => pages[state.currentIndex.value])
); );
} }
@override
void dispose() {
Get.delete<StartPageLogic>();
super.dispose();
}
} }

View File

@ -205,11 +205,4 @@ class UserPageState extends State<UserPage> {
) )
); );
} }
@override
void dispose() {
Get.delete<UserLogic>();
super.dispose();
}
} }