I'm trying to put GestureDetectors on single phrases in a text block. While it does work, I don't want the GestureDetector to create a new line. What I want is more like a text-link in html. Somehing like the following code gives me 3 seperate lines, how do I get a single line?
Text(
'This ',
),
GestureDetector(
onTap: () {
doSomething();
},
child: Text(
'text ',
),
),
Text(
"should be in one line.",
),
EDIT:
Row(
children: <Widget>[
Expanded(
child: Column(
children: <Widget>[
Text("Short text"),
GestureDetector(
child: Text(
"Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. "),
),
Text("Short text"),
Text(
"Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. Very long text. ")
],
),
),
],
),
While the solution suggested in the comments yields something like this:
That's what I'm looking for: