Fehlerkorrekturen und Erweiterungen
This commit is contained in:
1 parent
19b5b255ef
commit
a16a8fcf28
18 files changed
+88
-239
No files matched your search
@@ -58,6 +58,14 @@ class _MainPageState extends State<MainPage> with ConsumerMixin, ProducerMixin {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
// Unsubscribe from all message topics
|
||||
unsubscribe(queueId: Constants.messageTopicRemoveJob);
|
||||
unsubscribe(queueId: Constants.messageTopicJobReceived);
|
||||
unsubscribe(queueId: Constants.messageTopicMessageReceived);
|
||||
unsubscribe(queueId: Constants.messageTopicJobDeleted);
|
||||
unsubscribe(queueId: Constants.messageTopicUpdateBadges);
|
||||
unsubscribe(queueId: Constants.messageTopicBWVEnabled);
|
||||
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@@ -304,10 +312,12 @@ class _MainPageState extends State<MainPage> with ConsumerMixin, ProducerMixin {
|
||||
subscribe(
|
||||
queueId: Constants.messageTopicBWVEnabled,
|
||||
callback: (message) {
|
||||
setState(() {
|
||||
_showBWVButton =
|
||||
Util.preferencesGetBool(Constants.prefsBWVEnabled, false);
|
||||
});
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_showBWVButton =
|
||||
Util.preferencesGetBool(Constants.prefsBWVEnabled, false);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -337,7 +347,9 @@ class _MainPageState extends State<MainPage> with ConsumerMixin, ProducerMixin {
|
||||
|
||||
_loggedOut = false;
|
||||
|
||||
setState(() {});
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -368,7 +380,9 @@ class _MainPageState extends State<MainPage> with ConsumerMixin, ProducerMixin {
|
||||
|
||||
Navigator.of(MyApp.appNavigatorKey.currentContext!).pop();
|
||||
|
||||
setState(() {});
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -441,6 +455,15 @@ class _HeaderWidgetState extends State<_HeaderWidget> with ConsumerMixin {
|
||||
_initMessages();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
// Unsubscribe from all message topics
|
||||
unsubscribe(queueId: Constants.messageTopicSessionStatusInfoUpdate);
|
||||
unsubscribe(queueId: Constants.messageTopicLocationStatusUpdated);
|
||||
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var cellWidth = (MediaQuery.of(context).size.width - 60 - 60 - 25) / 2;
|
||||
|
||||
Reference in new issue
Block a user