I have a Row widget. This row has a Text as child (in this case, it is a SelectableText). The row is embedded into an InkWell widget for handling onTap() events. This works fine unless I tap the Text. In that case the InkWell onTap() event is not raising.
InkWell(
child: Row (
children: <Widget> [
SelectableText(...)
]
),
onTap: () => doSth();
)
Is it possible to ignore the Text for onTap() events? My workaround would be to add an onTap() event to the Text as well with the same code. But, in fact, I want to avoid this replication.
Edit: In fact, there's also a Button widget next to the Text widget. Its onPressed() event should work as expected, nevertheless.
InkWell(
child: Row (
children: <Widget> [
SelectableText(...),
Button(
onPressed: () {...}
)
]
),
onTap: () => doSth();
)