BottomPicker class

该picker用于显示自定的底部弹出框: 对话框结构如下: column /
/
(透明的上半部) column(下半部) /
/
确认取消标题栏 show方法传入的widget(因此传入的contentwidget 需要满足column的布局规则) 显示的视图:标题(标准的)+内容(自定义的content) contentWidget 底部对话框的内容区的widget title 默认文本为 请选择 confirm 底部对话框的确认,可以是widget,也可以是String,容错处理是文本 确认 cancel 底部对话框的取消,可以是widget,也可以是String, 容错处理是文本 取消 onConfirmPressed 点击确定的回调 如果不设置 则关闭picker 需要使用者去关闭picker onCancelPressed 点击取消的回调 如果不设置 则关闭picker barrierDismissible 点击对话框外部 是否取消对话框

Constructors

BottomPicker()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

show(BuildContext context, {required dynamic contentWidget, String title = '请选择', dynamic confirm, dynamic cancel, VoidCallback? onConfirm, VoidCallback? onCancel, bool barrierDismissible = true, bool showTitle = true}) → void