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, double slideTopHeight = 0, double slideBottomHeight = 0})
-
child
需要悬浮的 widgetslideType
,可参考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
- slideBottomHeight → double
-
final
- slideTopHeight → double
-
final
Methods
-
addFloatingListener(
FloatingListener 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
-
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