I have following code to get list of recognized text in my app. I would like to change them to dismissable buttons, so I can remove quickly some item from the list:
class OcrTextWidget extends StatelessWidget{
final OcrText ocrText;
OcrTextWidget(this.ocrText);
@override
Widget build(BuildContext context) {
return ListTile(
leading: const Icon(Icons.title),
title: Text(ocrText.value),
);
}
}
This how it look from app: