FloatingOverlay class
@name:floating @package: @author:345 QQ:1831712732 @time:2022/02/10 14:23 @des:
- Implemented types
Constructors
-
FloatingOverlay(Widget child, {FloatingEdgeType slideType = FloatingEdgeType.onRightAndBottom, double? top, double? left, double? right, double? bottom, String? logKey, FPosition<
double> ? position, FloatingParams? params, FloatingCommonController? controller}) -
child需要悬浮的 widget
Properties
- controller → FloatingCommonController
-
获取或设置外部控制器(如果需要直接调用控制器方法)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isHidden → bool
-
对外可读的隐藏状态
no setter
- isShowing → bool
-
是否真正显示(OverlayEntry 是否已插入)
no setter
- logKey ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addFloatingListener(
FloatingEventListener listener) → dynamic - 添加监听
-
clearFloatingListeners(
) → void - 清空所有监听器
-
close(
) → dynamic - 关闭悬浮窗
-
dispose(
) → void - 释放内部资源:清空监听器并释放内部创建的 controller(如果有)
-
getFloating(
) → Widget -
获取悬浮窗
override
-
hide(
) → dynamic - 隐藏悬浮窗,保留其状态(不移除 OverlayEntry) 只有在悬浮窗已经插入 Overlay 的状态下才可以使用,否则调用无效
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
BuildContext context) → dynamic - 打开悬浮窗 此方法配合 close方法进行使用
-
removeFloatingListener(
FloatingEventListener listener) → bool - 移除已添加的监听器
-
show(
) → dynamic - 显示悬浮窗,恢复其状态(仅当 Overlay 已插入时有效) 只有在悬浮窗是隐藏的状态下才可以使用,否则调用无效
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited