SilNetErrorWidget class

Inheritance

Constructors

SilNetErrorWidget({Key? key, String? prompt, String? imagePath, void reloadFunc()?, TextStyle? textStyle, String? bottomButtonTitle, EdgeInsetsGeometry? contentMargin, double? imageWidth, double? imageHeight, Widget? customWidget, RefreshController? refreshController, Color? backgroundColor, Widget? refresherHeader, TextStyle? promptTextStyle, EdgeInsetsGeometry? promptMargin, EdgeInsetsGeometry? buttonMargin})
const

Properties

backgroundColor Color?
背景颜色
final
bottomButtonTitle String?
按钮标题
final
buttonMargin EdgeInsetsGeometry?
按钮的外间距
final
contentMargin EdgeInsetsGeometry?
内容边界 竖屏:默认EdgeInsets.only(top: 70.w, left: 20.w, right: 20.w) 横屏:默认居中
final
customWidget Widget?
自定义内容
final
hashCode int
The hash code for this object.
no setterinherited
imageHeight double?
提示图片的高度
final
imagePath String?
提示图片地址
final
imageWidth double?
提示图片的宽度
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
prompt String?
提示文字
final
promptMargin EdgeInsetsGeometry?
提示文本的外间距
final
promptTextStyle TextStyle?
提示文本的样式
final
refreshController → RefreshController?
刷新控件控制
final
refresherHeader Widget?
刷新header
final
reloadFunc → void Function()?
重新加载的函数
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle?
按钮文本的样式
final

Methods

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