ListOrGridEmpty class
内容容器 判断 List 或者 Grid 是否为空 显示内容或加载空视图
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ListOrGridEmpty
Constructors
-
ListOrGridEmpty({Key? key, required BaseListViewModel<
BaseModel, BaseEntity, dynamic> vm, required dynamic childBuild(), VSBuilder<BaseListViewModel< ? emptyBuild, ViewSizeType viewSizeType = ViewSizeType.not, bool useViewSizeType = false, bool emptyViewUseViewSizeType = false})BaseModel, BaseEntity, dynamic> > -
const
-
ListOrGridEmpty.max({Key? key, required BaseListViewModel<
BaseModel, BaseEntity, dynamic> vm, required dynamic childBuild(), VSBuilder<BaseListViewModel< ? emptyBuild, ViewSizeType viewSizeType = ViewSizeType.expanded, bool useViewSizeType = false, bool emptyViewUseViewSizeType = true})BaseModel, BaseEntity, dynamic> > -
Column 和Row 用 Expanded 实现
const
-
ListOrGridEmpty.size({Key? key, required BaseListViewModel<
BaseModel, BaseEntity, dynamic> vm, required dynamic childBuild(), required num? height, required num? width, VSBuilder<BaseListViewModel< ? emptyBuild, ViewSizeType viewSizeType = ViewSizeType.size, bool useViewSizeType = false, bool emptyViewUseViewSizeType = true})BaseModel, BaseEntity, dynamic> > -
固定大小,按需使用
const
Properties
- childBuild → dynamic Function()
-
final
-
emptyBuild
→ VSBuilder<
BaseListViewModel< ?BaseModel, BaseEntity, dynamic> > -
final
- emptyViewUseViewSizeType → bool
-
emptyView 是否依赖于ViewSizeType
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → num?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useViewSizeType → bool
-
childBuild 是否依赖于ViewSizeType
final
- viewSizeType → ViewSizeType
-
final
-
vm
→ BaseListViewModel<
BaseModel, BaseEntity, dynamic> -
final
- width → num?
-
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
Static Methods
-
listWidget(
{required EmptyIntactWidget emptyIntactWidget, num? height, num? width, required BaseListViewModel< BaseModel, BaseEntity, dynamic> vm, VSBuilder<BaseListViewModel< ? emptyBuild}) → List<BaseModel, BaseEntity, dynamic> >Widget> - 如果空数据则 显示完整的单独页 在ListView 里面用 完整页面 需要大小 可以全局设置 场景 文章页 头部是广告 下方为文章列表 当list 未空 广告应该正常显示,列表显示空