• Renzo Olivares's avatar
    Fix SelectionArea select-word edge cases (#136920) · f60e54b2
    Renzo Olivares authored
    This change fixes issues with screen order comparison logic when rects are encompassed within each other. This was causing issues when trying to select text that includes inline `WidgetSpan`s inside of a `SelectionArea`.
    
    * Adds `boundingBoxes` to `Selectable` for a more precise hit testing region.
    
    Fixes #132821
    Fixes updating selection edge by word boundary when widget spans are involved.
    Fixes crash when sending select word selection event to an unselectable element.
    f60e54b2
selection_container.dart 10.7 KB