NUISwipeRefreshHeader constructor
const
NUISwipeRefreshHeader({
- Key? key,
- RefreshStyle refreshStyle = RefreshStyle.Follow,
- double height = 80.0,
- Duration completeDuration = const Duration(milliseconds: 600),
- NUILinearGradient? gradient,
- OuterBuilder? outerBuilder,
- TextStyle? textStyle = const TextStyle(color: Colors.grey),
- Widget? canTwoLevelIcon,
- Widget? twoLevelView,
- IconPosition? iconPos = IconPosition.left,
- double? spacing = 15.0,
- Widget? refreshingIcon,
- Color progressBackgroundColor = NUIColors.NUISkeletalGray,
- Color progressFillColor = NUIColors.NUISkeletalLightGray,
- Widget? failedIcon = const Icon(Icons.error, color: Colors.grey),
- Widget? completeIcon,
- Widget? idleIcon,
- 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,
);