Moved notification handling to serverside

This commit is contained in:
2023-09-08 20:54:01 +02:00
parent 5f0426aab9
commit 6816e77d21
5 changed files with 77 additions and 86 deletions

View File

@ -1,10 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:provider/provider.dart';
import '../model/chatList/chatListProps.dart';
import '../model/message/messageProps.dart';
class NotificationService {
static final NotificationService _instance = NotificationService._internal();
@ -73,8 +69,5 @@ class NotificationService {
textColor: Colors.white,
fontSize: 13.0,
);
Provider.of<ChatListProps>(context, listen: false).run(renew: true);
Provider.of<MessageProps>(context, listen: false).run(renew: true);
}
}