Expand description
Draggable text-selection handles (accent lollipops) drawn in the top-level overlay.
A SelectionHandle renders one of the lollipop shapes from
crate::text_selection at a text endpoint (the caret, or a selection
start/end) and lets a finger drag it: a 2 dp stem spanning the line box
with a 16 dp dot tangent just outside it — above the line for the start
handle, below it for the end and cursor handles. It is composed inside a
Popup so it draws above the field and is not clipped when it hangs
outside the line. Positioning and drag→text-offset mapping are the
caller’s job (see BasicTextField); this widget only draws the lollipop
and reports the window-space position of an in-progress drag.
Functions§
- Selection
Handle - A finger-draggable selection/cursor handle rendered in the overlay.