Erweiterungen
This commit is contained in:
1 parent
6af8cb63e6
commit
1f4234e381
3 files changed
+47
-83
No files matched your search
@@ -97,6 +97,7 @@ class _MainPageState extends State<MainPage> {
|
||||
|
||||
_exitMessages();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Stack(
|
||||
@@ -252,19 +253,19 @@ class _MainPageState extends State<MainPage> {
|
||||
}*/
|
||||
|
||||
_initMessages() {
|
||||
MessageService().subscribe<StatusInfoUpdate>(Constants.messageTopicStatusInfoUpdate, (statusInfoUpdateMessage) {
|
||||
MessageService().subscribe<StatusInfoUpdate>(Constants.messageTopicStatusInfoUpdate, this, (statusInfoUpdateMessage) {
|
||||
widget.sidValueNotifier.value = statusInfoUpdateMessage.status.sid;
|
||||
});
|
||||
|
||||
MessageService().subscribe<JobReceivedMessage>(Constants.messageTopicJobReceived, (JobReceivedMessage jobReceivedMessage) {
|
||||
MessageService().subscribe<JobReceivedMessage>(Constants.messageTopicJobReceived, this, (JobReceivedMessage jobReceivedMessage) {
|
||||
_jobReceived(jobReceivedMessage.job);
|
||||
});
|
||||
}
|
||||
|
||||
void _exitMessages() {
|
||||
MessageService().unsubscribe<StatusInfoUpdate>(Constants.messageTopicStatusInfoUpdate);
|
||||
MessageService().unsubscribe<StatusInfoUpdate>(Constants.messageTopicStatusInfoUpdate, this);
|
||||
|
||||
MessageService().unsubscribe<StatusInfoUpdate>(Constants.messageTopicJobReceived);
|
||||
MessageService().unsubscribe<StatusInfoUpdate>(Constants.messageTopicJobReceived, this);
|
||||
}
|
||||
|
||||
void _refreshBadges() async {
|
||||
|
||||
Reference in new issue
Block a user