opt: streamController close

This commit is contained in:
guozhigq
2024-04-20 23:32:28 +08:00
parent 5f0bb44bf1
commit bc29f69133
7 changed files with 22 additions and 0 deletions

View File

@ -101,4 +101,10 @@ class MainController extends GetxController {
selectedIndex = defaultIndex != -1 ? defaultIndex : 0;
pages = navigationBars.map<Widget>((e) => e['page']).toList();
}
@override
void onClose() {
bottomBarStream.close();
super.onClose();
}
}