NUISwipeRefreshHeader constructor

const NUISwipeRefreshHeader({
  1. Key? key,
  2. RefreshStyle refreshStyle = RefreshStyle.Follow,
  3. double height = 80.0,
  4. Duration completeDuration = const Duration(milliseconds: 600),
  5. NUILinearGradient? gradient,
  6. OuterBuilder? outerBuilder,
  7. TextStyle? textStyle = const TextStyle(color: Colors.grey),
  8. Widget? canTwoLevelIcon,
  9. Widget? twoLevelView,
  10. IconPosition? iconPos = IconPosition.left,
  11. double? spacing = 15.0,
  12. Widget? refreshingIcon,
  13. Color progressBackgroundColor = NUIColors.NUISkeletalGray,
  14. Color progressFillColor = NUIColors.NUISkeletalLightGray,
  15. Widget? failedIcon = const Icon(Icons.error, color: Colors.grey),
  16. Widget? completeIcon,
  17. Widget? idleIcon,
  18. Widget? releaseIcon,
})

Implementation

const NUISwipeRefreshHeader({
  Key? key,
  RefreshStyle refreshStyle = RefreshStyle.Follow,
  double height = 80.0,
  Duration completeDuration = const Duration(milliseconds: 600),
  this.gradient,
  this.outerBuilder,
  this.textStyle = const TextStyle(color: Colors.grey),
  this.canTwoLevelIcon,
  this.twoLevelView,
  this.iconPos = IconPosition.left,
  this.spacing = 15.0,
  this.refreshingIcon,
  this.progressBackgroundColor = NUIColors.NUISkeletalGray,
  this.progressFillColor = NUIColors.NUISkeletalLightGray,
  this.failedIcon = const Icon(Icons.error, color: Colors.grey),
  this.completeIcon,
  this.idleIcon,
  this.releaseIcon,
}) : super(
  key: key,
  refreshStyle: refreshStyle,
  completeDuration: completeDuration,
  height: height,
);