I load a list of strings from json file. For example:
Joe waited for the <link>train</link>
The <link>car</link> was late
Mary and Samantha took the <link>bus</link>
In the listview.builder how to replace the text that is within <link></link> to be able to wrap in a GestureDetector widget?
From <link>train</link> to train (this train is clickable)
My code is as below:
ListView.builder(
itemCount: book.sentence.length,
itemBuilder: (context, index) {
return Container(
child: Row(
children: [
Flexible(
child: Text(book.sentence[index].content.toString())
)
],
)
);
}
),
The current output result are:
Joe waited for the <link>train</link>
The <link>car</link> was late
Mary and Samantha took the <link>bus</link>
