I have a delegate file for search into some items , its working and shows the item but when I type something in the search field the items remain the same , my problem is I don't know how to add a sorting option to this , this is some part of the code below that shows the items in a Card , any idea please ?
@override
Widget buildResults(BuildContext context) {
BlocBuilder<CardListBloc, CardState>(
builder: (context, state) {
itemBuilder: (context, index) {
return Card(
elevation: 4,
shape: cardRadius(4),
margin: EdgeInsets.only(left: 12, right: 12, top: index == 0 ? 12 :
0),
child: Container(
width: double.infinity,
child: ListTile(
title: Text(state.mTicket.cards[index].name),
subtitle: Text(Jiffy(state.mTicket.cards[index].createdOn).MEd),
}