Fehlerkorrekturen und Erweiterungen

This commit is contained in:
Sven committed 2025-09-02 11:12:02 +02:00
1 parent 19b5b255ef
commit a16a8fcf28
18 files changed
+88 -239

No files matched your search

+14 -2
View File
@@ -42,12 +42,22 @@ class _ApproachAreaPageState extends State<ApproachAreaPage> with ProducerMixin,
_initCompleted = true;
setState(() {});
if (mounted) {
setState(() {});
}
});
_initMessages();
}
@override
void dispose() {
// Unsubscribe from all message topics
unsubscribe(queueId: Constants.messageTopicRankingUpdated);
super.dispose();
}
@override
Widget build(BuildContext context) {
if (!_initCompleted) {
@@ -204,7 +214,9 @@ class _ApproachAreaPageState extends State<ApproachAreaPage> with ProducerMixin,
callback: (message) async {
_ranking = await MyApp.isarInstance.rankings.where().findFirst();
setState(() {});
if (mounted) {
setState(() {});
}
},
);
}