UFUListView constructor

const UFUListView({
  1. Key? key,
  2. required int listCount,
  3. required Widget itemBuilder(
    1. BuildContext,
    2. int
    ),
  4. Future<void> onRefresh()?,
  5. Future<void> onLoadMore()?,
  6. bool? disableOnRefresh,
  7. EdgeInsets? padding = EdgeInsets.zero,
  8. Axis scrollDirection = Axis.vertical,
  9. ScrollPhysics? physics,
  10. ScrollController? scrollController,
  11. bool shrinkWrap = true,
  12. bool doAddFloatingButtonMargin = false,
  13. bool isGridView = false,
  14. SliverGridDelegate? gridDelegate,
})

Implementation

const UFUListView({
  super.key,
  required this.listCount,
  required this.itemBuilder,
  this.onRefresh,
  this.onLoadMore,
  this.disableOnRefresh,
  this.padding = EdgeInsets.zero,
  this.scrollDirection = Axis.vertical,
  this.physics,
  this.scrollController,
  this.shrinkWrap = true,
  this.doAddFloatingButtonMargin = false,
  this.isGridView = false,
  this.gridDelegate,
});