itemBuilder: (context, index, Prediction prediction) {
final text = prediction.terms
?.take(
prediction.terms!.length - 1,
)
.map((term) => term.value)
.join(', ');
if (text != null) {
return Padding(
padding: EdgeInsets.symmetric(vertical: 4.ss),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Icon(GIcons.place),
const SizedBox(width: 7),
if (prediction.terms?.isNotEmpty ?? false)
Expanded(
child: Padding(
padding: EdgeInsets.only(top: 2.ss),
child: Text(
'$text.',
style: context.textTheme.bodySmall,
),
),
),
],
),
);
} else {
return const SizedBox.shrink();
}
},
Need to remove the white background when scroll items
Need to remove the white background when scroll items