i have a list of strings showed in listveiw.builder widget i want to get the document info from firebase when i press on a single word
var words = [red,blue,green,yellow] ;
i want to get the document based on the value of the list
showed in :
ListView.builder( itemCount: words.length, itemBuilder: (context, index) { return Column( children: [ Row( children: [ Expanded( flex: 3, child: InkWell( onTap: () {}, child: Text('${words[index]}'), ), ), Expanded( flex: 1, child: InkWell( onTap: () { // press this and get the data of {words[index]} document }, child: Text( 'press to get color info', ), ), ), ], ), Text( show the data here after fetching it from firestore) ], ); }, )