BottomDialogWrapper<T extends Object> class

do what @author yulun @since 2020-06-10 17:05 底部弹框 容器 支持拖动关闭 相比于系统的bottomSheet , 优化了容器中即使是列表也能拖动关闭

Inheritance

Constructors

BottomDialogWrapper({Widget? child, Color barrierColor = const Color(0x55000000), int duration = 300, T exitCallBack()?, WidgetBuilder? buildChild, double transformHeight = 200, bool enableDrag = true, int dragScrollDep = 0})

Properties

barrierColor Color
背景色
final
buildChild WidgetBuilder?
另一种方式 暴露context构建child ,推荐这种方式
final
child Widget?
底部弹框child
final
dragScrollDep int
如果child里有列表,需要业务方告知滚动的列表在第几层,默认是第0层,如果是nested 一般是第一层
final
duration int
动画执行时长
final
enableDrag bool
是否启用滑动关闭
final
exitCallBack → T Function()?
点击空白处 消失对话框,可以在这里自定义返回值
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformHeight double
Y方向动画执行的高度,如果业务方知道高度可以设置下,默认执行200个像素的高度变化 一般不用设置,除非高度远远大于200,才需要设置 这里的200是逻辑单位
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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

Static Methods

of(BuildContext context) → _BottomDialogWrapperState?
获取 _BottomDialogWrapperState