MyScrollView class

本项目通用的布局(SingleChildScrollView) 1.底部存在按钮 2.底部没有按钮

Inheritance
Available Extensions

Constructors

MyScrollView({Key? key, required List<Widget> children, EdgeInsetsGeometry? padding, ScrollPhysics physics = const BouncingScrollPhysics(), CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start, Widget? bottomButton, KeyboardActionsConfig? keyboardConfig, bool tapOutsideToDismiss = false, double overScroll = 16.0, ScrollController? controller})
注意:同时存在底部按钮与keyboardConfig配置时,为保证软键盘弹出高度正常。需要在Scaffold使用 resizeToAvoidBottomInset: defaultTargetPlatform != TargetPlatform.iOS, 除非Android与iOS平台均使用keyboard_actions
const

Properties

bottomButton Widget?
final
children List<Widget>
final
controller ScrollController?
final
crossAxisAlignment CrossAxisAlignment
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardConfig → KeyboardActionsConfig?
final
overScroll double
默认弹起位置在TextField的文字下面,可以添加此属性继续向上滑动一段距离。用来露出完整的TextField。
final
padding EdgeInsetsGeometry?
final
physics ScrollPhysics
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tapOutsideToDismiss bool
键盘外部按下将其关闭
final

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.
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}) 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