PublicWidget class
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
Static Methods
-
createDefaultTabBar({required int tabSize, required String onTabText(int index), required ValueChanged<int> onTap, required TabController controller, TabBarIndicatorSize indicatorSize = TabBarIndicatorSize.tab, bool isScrollable = true})
→ Widget
-
-
createDefaultTabBarWithPage({required int count, required String onTabText(int index), required TabController tabController, required PageController pageController, required Widget pageBuilder(BuildContext context, int index), TabBarIndicatorSize indicatorSize = TabBarIndicatorSize.tab, bool isScrollable = true})
→ Widget
-
-
createEmptyView({double iconWidth = 180, double iconHeight = 180, EdgeInsets margin = EdgeInsets.zero, String? emptyText, VoidCallback? onTap})
→ Widget
-
创建空视图,子类可override自定义
-
createErrorView({double iconWidth = 144, double iconHeight = 115, String? errorText, VoidCallback? onTap})
→ Widget
-
创建错误视图,子类可override自定义
-
createLoadingView({String? loadingText = '正在加载...'})
→ Widget
-
创建Loading视图
-
通用的列表区块标题组件
-
ratingWidget({required double rating, double iconSize = 16, Color color = Colors.amber, TextStyle? textStyle})
→ Widget
-
通用的评分组件
-
showDownloadProgressOverlay({required bool visible, required double progress, String title = "正在下载资源...", Color color = Colors.brown})
→ Widget
-