FlAdaptHeightWevView class
webView content 有多高, widget 就有多高 仅适用 内容比较少的时候 The widget is as tall as the WebView content is on ios, if the WebView is too high and there are too many images, swiping will stall only applicable when there is little content
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlAdaptHeightWevView
Constructors
- FlAdaptHeightWevView({Key? key, required ExtendedFlWebViewBuilder builder, double initialHeight = 40, double gapUpdateHeight = 40, double? maxHeight})
-
const
Properties
- builder → ExtendedFlWebViewBuilder
-
final
- gapUpdateHeight → double
-
onContentSizeChanged
高度差距更新间隔 两次回调高低小于这个值 就不刷新 默认为 40 根据实际需求设置 间隔高度更新final - hashCode → int
-
The hash code for this object.
no setterinherited
- initialHeight → double
-
初始高度
The initial height
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxHeight → double?
-
设置最大高度,
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FlAdaptHeightWevView> -
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