Move periodic Screen update to App level.
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user