Closed utsavDave97 closed 2 years ago
I have the following code to group items based on whether they have been routed or not
GroupedListView<Parcels, int>( elements: snapshot.data, groupBy: (element) => element.isRouted ? 1 : -1, itemComparator: (p1, p2) => p1.isRouted == p2.isRouted ? 1 : -1, groupHeaderBuilder: (Parcels p) { return Container( padding: const EdgeInsets.all(20), child: Text( p.isRouted ? 'Parcels optimized' : 'Parcels not optimized', style: TextStyle(color: Colors.black), ), ); }, itemBuilder: (c, element) { return ParcelCard( //code for this is below parcel: element, listType: listType, ); }, )
It does display items into groups but not able to tap on them.
Card( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8.0), ), elevation: 3, margin: EdgeInsets.symmetric(vertical: 1.0.h, horizontal: 2.0.w), color: Colors.white, child: InkWell( onTap: () { showBottom(context, parcel,listType); //THIS ONTAP DOESN'T WORK }, child: Container( height: 13.0.h, width: 100.0.w, child: Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [.... ...... ........
Any reason why?
Appreciate your library.
I have the following code to group items based on whether they have been routed or not
It does display items into groups but not able to tap on them.
Any reason why?
Appreciate your library.