供统一 popup host 使用的位置计算接口。
所有坐标均为相对于窗口左上角的逻辑像素。实现不得自行读取 MediaQuery,因此同一算法可同时用于 Overlay 与窗口级 host。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- margins → EdgeInsetsGeometry
-
弹窗的额外外边距;方向性边距由调用方按当前文字方向解析。
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
calculatePosition(
{required Rect anchorBounds, required Rect windowBounds, required TextDirection textDirection, required Size popupContentSize, required EdgeInsets popupMargin, required MiuixPopupAlign alignment}) → Offset - 计算弹窗左上角在窗口中的位置。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited