Move periodic Screen update to App level.

This commit is contained in:
MineTec committed 2023-02-22 12:20:08 +01:00
1 parent 2c818efce6
commit 2ba2fb9090
2 files changed
+10 -3

No files matched your search

-3
View File
@@ -24,9 +24,6 @@ class _ChatListState extends State<ChatList> {
void initState() {
super.initState();
Timer.periodic(const Duration(seconds: 30), (Timer t) => {
setState((){}),
});
Timer.periodic(const Duration(minutes: 1), (timer) {
Provider.of<ChatListProps>(context, listen: false).run();
});