Floating class

@name:floating @package: @author:345 QQ:1831712732 @time:2022/02/10 14:23 @des:

Constructors

Floating(Widget child, {FloatingSlideType slideType = FloatingSlideType.onRightAndBottom, double? top, double? left, double? right, double? bottom, double moveOpacity = 0.3, bool isPosCache = true, bool isShowLog = true, bool isSnapToEdge = true, bool isStartScroll = true, double slideTopHeight = 0, double slideBottomHeight = 0, double snapToEdgeSpace = 0, SlideStopType slideStopType = SlideStopType.slideStopAutoType})
child需要悬浮的 widget slideType,可参考FloatingSlideType

Properties

hashCode int
The hash code for this object.
no setterinherited
isShowing bool
是否真正显示
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
添加监听
close() → dynamic
关闭悬浮窗
hideFloating() → dynamic
隐藏悬浮窗,保留其状态 只有在悬浮窗显示的状态下才可以使用,否则调用无效
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(BuildContext context) → dynamic
打开悬浮窗 此方法配合 close方法进行使用,调用close之后在调用此方法会丢失 Floating 状态 否则请使用 hideFloating 进行隐藏,使用 showFloating进行显示,而不是使用 close
scrollManager() ScrollPositionManager
获取滑动管理
setIsStartScroll(bool isScroll) → dynamic
设置是否启动悬浮窗滑动 isScroll true 表示启动,否则关闭
setLogKey(String key) → dynamic
设置 FloatingLog 标识
showFloating() → dynamic
显示悬浮窗,恢复其状态 只有在悬浮窗是隐藏的状态下才可以使用,否则调用无效
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited