Firestore setoptions merge true and update overriding even other fields
I am trying to update my firestore doc from different screens. But when i use .set with merge true or even use update the previous values gets assigned to null. Please help me to sort out this problem
Creating Pagination for Messenger in Flutter with Firestore
I’m struggling to create good pagination for my messenger app. I used the FirestorePagination library, but after each new message, the entire screen is re-rendered, and a read request is made to the database. As a result, after 5 minutes of using the messenger, the database has 1k reads and 5 writes. I’m not sure how to handle this.
Creating Pagination for Messenger in Flutter with Firestore
I’m struggling to create good pagination for my messenger app. I used the FirestorePagination library, but after each new message, the entire screen is re-rendered, and a read request is made to the database. As a result, after 5 minutes of using the messenger, the database has 1k reads and 5 writes. I’m not sure how to handle this.
Creating Pagination for Messenger in Flutter with Firestore
I’m struggling to create good pagination for my messenger app. I used the FirestorePagination library, but after each new message, the entire screen is re-rendered, and a read request is made to the database. As a result, after 5 minutes of using the messenger, the database has 1k reads and 5 writes. I’m not sure how to handle this.
Functions marked ‘async’ must have a return type which is a supertype of ‘Future’
I have this function but its doesn’t work because async
keyword must add a Future
return type, and I can’t add Future
because I need the value to create a stream for StreamBuilder
.
The following assertion was thrown building _FocusInheritedScope(dirty): ‘package:flutter/src/widgets/framework.dart’: Failed assertion:line6216 pos14
When I click addTab, the following error appears on the homePage. If anyone knows what it is, please let me know.
Are there differences in required permissions for changing a value and removing it altogether in firestore?
I’m working with a project (in Flutter) that has a concept of “groups” and I’d like user Alice to be able to add user Bob to their group, change their status, and remove them. For my application, I’d like this to happen both in a document representing the group and on Bob’s user document.
need a structure code to implement group chat from Scratch in flutter using cloud firestore
I want to allow multiple users to join a group chat.
Each group should have a unique ID.
Users should be able to send and receive messages in real-time.
Messages should include the sender’s ID, timestamp, and the message text.
The chat should update in real-time for all users in the group.
Flutter: _TypeError (type ‘String’ is not a subtype of type ‘TextEditingController’)
Below is my flutter TextEditingController
Firestore snapshots not showing up in the application
Before I explain the problem, I’m currently making an e-diary app that detects emotion through certain keywords. The app has a sign in and register page (for authentication), along with a ‘homepage’ (read: page navigator) that allows seamless transition of dashboard, calendar, statistic, and image page using bottomNavigationBar but even then…when I want to sign out of the app, I have to manually close and re-open the app so it goes back to the sign in page.