Flutter didChangeAppLifecycleState is not working
didChangeAppLifecycleState is not working. I have checked all other question related to this, but not helpful.
my problem is there are handle chats for multiple users uding Firebase and each user must be get own chat
import ‘package:cloud_firestore/cloud_firestore.dart’; Future<List<Map<String, dynamic>>> getMessages() async { try { QuerySnapshot<Map<String, dynamic>> querySnapshot; if (userType == ‘donor’) { querySnapshot = await FirebaseFirestore.instance .collection(‘messages’) .where(‘sender_id’, isEqualTo: localid) .where(‘receiver_id’, isEqualTo: global_id) .orderBy(‘time’, descending: true) .get(); } else if (userType == ‘taker’) { querySnapshot = await FirebaseFirestore.instance .collection(‘messages’) .where(‘receiver_id’, isEqualTo: localid) .where(‘sender_id’, isEqualTo: taker_id) .orderBy(‘time’, descending: true) .get(); } […]
Why When i Upgrate Flutter My Project Didn’t Run
Hello my project was running normally until I upgraded the flutter at SDK 3.22.0 and Dart SDK 3.4.0 and the pub get.
When I start debugging I get these errors exactly: