YmTabPageView constructor

YmTabPageView(
  1. List<String> tabs,
  2. List items, {
  3. Key? key,
  4. double fontSize = 15,
  5. Size size = const Size(500, 500),
  6. double tabBarHeight = 40,
  7. int selectedIndex = 0,
  8. Color textColor = const Color(0xff666666),
  9. Color selectedTextColor = const Color(0xff606FFF),
  10. bool hasMoreData = true,
  11. String loadMoreText = "没有更多了~",
  12. required Function onChanged,
  13. required Function onItemBuilder,
  14. required Function onLoadMore,
})

Implementation

YmTabPageView(
  this.tabs,
  this.items, {
  Key? key,
  this.fontSize = 15,
  this.size = const Size(500, 500),
  this.tabBarHeight = 40,
  this.selectedIndex = 0,
  this.textColor = const Color(0xff666666),
  this.selectedTextColor = const Color(0xff606FFF),
  this.hasMoreData = true,
  this.loadMoreText = "没有更多了~",
  required this.onChanged,
  required this.onItemBuilder,
  required this.onLoadMore,
}) : super(key: key);