CommonWidgetBuilder class

通用组件快捷调用

Constructors

CommonWidgetBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildListEmptyView(String assetName, String emptyTip, {AlignmentGeometry? alignment}) Widget
buildLiveRoomGridView(BuildContext buildContext, List<LiveRoomModel>? liveRoomItemList, {ScrollPhysics? physics, bool shrinkWrap = false, String? emptyText, bool needShowEmptyView = true, dynamic onItemClicked(int)?, bool isInitFinish = true}) Widget
直播间列表 onItemClicked 如果传递,就交给调用层控制点击事件 isInitFinish 是否初始化完毕,没有就显示空白界面
buildLiveRoomList(BuildContext context, List<LiveRoomModel>? liveRoomItemList, RefreshController refreshController, {VoidCallback? onRefresh, VoidCallback? onLoading, dynamic onItemClicked(int)?, dynamic enablePullDown = true, dynamic enablePullUp = false, bool isInitFinish = true, String? emptyText}) Widget
直播间列表
buildSmartRefresher(BuildContext context, RefreshController refreshController, {VoidCallback? onRefresh, VoidCallback? onLoading, dynamic enablePullDown = true, dynamic enablePullUp = false, dynamic showNoDataText = true, Widget? childWidget}) Widget
构建通用SmartRefresher
showLoadingDialog(BuildContext context, {String? msg}) → dynamic