Using the example here. I modified some code to output the the message onTap as follows: The List is generated with real values from firestore. but the output is blank. It’s not empty, as I tested with another set of output. How can I retrieve these real values to use in onTap event handler? …. […]
- Tags ), as I tested with another set of output. How can I retrieve these real values to use in onTap event handler? .... return ListView.builder(, int index) { final DocumentSnapshot document = snapshot.data.documents[index]; final dynamic message = document['message']; retur, itemBuilder: (_, onTap: (){ print(message.toString()); // OUTPUT: (Nothing) }, subtitle: Text('Message ${index + 1} of $messageCount'), Using the example here. I modified some code to output the the message onTap as follows: The List is generated with real values from firest