FormSheet class

表单Widget

  1. 自带提交按钮, 可以自定义样式
  2. 可以区分滚动和不能滚动
Inheritance

Constructors

FormSheet({Key key, bool scrollable: false, Widget submit, bool autovalidate: false, WillPopCallback onWillPop, VoidCallback onChanged, @required List<Widget> children})
const

Properties

autovalidate → bool
是否自动检查, 传递给内部Form
final
children → List<Widget>
children列表
final
onChanged VoidCallback
传递给内部Form
final
onWillPop WillPopCallback
传递给内部Form
final
scrollable → bool
是否可以滚动, 如果是, 那么内部会使用ListView, 如果不是, 内部会使用Column
final
submit Widget
提交回调
final
hashCode → int
The hash code for this object.
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug}) → String
Returns a string representation of this object.
inherited
toStringDeep({String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug}) → 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 ==(dynamic other) → bool
The equality operator.
inherited