ExtendedFlWebViewWithScrollView class

固定的 webView 高度,建议设置为当前可视高度 滚动中不会卡顿 Fixed webView height. It is recommended to set it to the current viewable height There is no lag in scrolling

Inheritance

Constructors

ExtendedFlWebViewWithScrollView({Key? key, required NestedScrollViewBuilder scrollViewBuilder, required ExtendedFlWebViewBuilder webViewBuilder, ScrollController? controller, required double contentHeight, double minHeight = 15, int faultTolerantHeight = 15, double gapUpdateHeight = 40, double initialHeight = 40})
const

Properties

contentHeight double
必须要把 webView 放在 scrollview的初始位置 建议设置为当前可视高度
final
controller ScrollController?
scrollview
final
faultTolerantHeight int
当 webView 滚动结束的时候 会自动在外层滚动组件跳转这个高度 即为容错高度 当外层滚动组件 到达最头部的时候 webView 自动向上滚动这个高度
final
gapUpdateHeight double
onContentSizeChanged 高度差距更新间隔 两次回调高低小于这个值 就不刷新 默认为 40 根据实际需求设置 间隔高度更新
final
hashCode int
The hash code for this object.
no setterinherited
initialHeight double
初始高度
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minHeight double
当 webView content 的高度小于 webViewHeight 时显示的高度 不建议设置为0 最少为10
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollViewBuilder NestedScrollViewBuilder
final
webViewBuilder ExtendedFlWebViewBuilder
webView
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ExtendedFlWebViewWithScrollView>
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}) 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