DesktopTextSelectionToolbarLayoutDelegate class
Positions the toolbar at anchor if it fits, otherwise moves it so that it just fits fully on-screen.
See also:
- desktopTextSelectionControls, which uses this to position itself.
- cupertinoDesktopTextSelectionControls, which uses this to position itself.
- TextSelectionToolbarLayoutDelegate, which does a similar layout for the mobile text selection toolbars.
- Inheritance
-
- Object
- SingleChildLayoutDelegate
- DesktopTextSelectionToolbarLayoutDelegate
Constructors
- DesktopTextSelectionToolbarLayoutDelegate({required Offset anchor})
- Creates an instance of TextSelectionToolbarLayoutDelegate.
Properties
Methods
-
getConstraintsForChild(
BoxConstraints constraints) → BoxConstraints -
The constraints for the child given the incoming constraints.
override
-
getPositionForChild(
Size size, Size childSize) → Offset -
The position where the child should be placed.
override
-
getSize(
BoxConstraints constraints) → Size -
The size of this object given the incoming constraints.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRelayout(
covariant DesktopTextSelectionToolbarLayoutDelegate oldDelegate) → bool -
Called whenever a new instance of the custom layout delegate class is
provided to the RenderCustomSingleChildLayoutBox object, or any time
that a new CustomSingleChildLayout object is created with a new instance
of the custom layout delegate class (which amounts to the same thing,
because the latter is implemented in terms of the former).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited