Closed
Description
SpanDefinition does not support styling and gesture actions. It is because it's not easy since the text style is not inherited from a TextSpan to Text widgets in descendant WidgetSpans and the gesture recognizer and mouse cursor type passed to a TextSpan are not applied to its children. It is how Flutter currently behaves, whether it is a bug or not.
However, it should be possible to manually apply them to children recursively. It will enable SpanDefinition to have the same properties as other definitions, such as tapStyle
and onTap
.