Skip to content

Make SpanDefinition equivalent to other definitions #32

Closed
@kaboc

Description

@kaboc

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions