skip to Main Content

How to make the button turn green when upon clicking it – Flutter

the data is display all using the streamBuilder and I'm using the return ListView.Builder by adding the onTap button child: StreamBuilder<QuerySnapshot>( stream: FirebaseFirestore.instance .collection('prayers') .orderBy('prayerId') .snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) { return const CircularProgressIndicator(); } itemCount: documents.length, itemBuilder:…

VIEW QUESTION
Back To Top
Search