opt set pageTransition

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-04 16:54:02 +08:00
parent 7c1644efc4
commit b4a46133be
14 changed files with 136 additions and 129 deletions

View File

@@ -91,7 +91,9 @@ class _SetSwitchItemState extends State<SetSwitchItem> {
);
val = true;
SmartDialog.showToast('重启生效');
setState(() {});
if (mounted) {
setState(() {});
}
},
child: const Text('确认'),
),
@@ -113,7 +115,9 @@ class _SetSwitchItemState extends State<SetSwitchItem> {
if (widget.needReboot) {
SmartDialog.showToast('重启生效');
}
setState(() {});
if (mounted) {
setState(() {});
}
}
@override