ClassicHeader constructor
const
ClassicHeader({
- Key? key,
- RefreshStyle refreshStyle = RefreshStyle.Follow,
- double height = 60.0,
- Duration completeDuration = const Duration(milliseconds: 600),
- OuterBuilder? outerBuilder,
- TextStyle textStyle = const TextStyle(color: Colors.grey),
- String? releaseText,
- String? refreshingText,
- Widget? canTwoLevelIcon,
- Widget? twoLevelView,
- String? canTwoLevelText,
- String? completeText,
- String? failedText,
- String? idleText,
- IconPosition iconPos = IconPosition.left,
- double spacing = 15.0,
- Widget? refreshingIcon,
- Widget? failedIcon = const Icon(Icons.error, color: Colors.grey),
- Widget? completeIcon = const Icon(Icons.done, color: Colors.grey),
- Widget? idleIcon = const Icon(Icons.arrow_downward, color: Colors.grey),
- Widget? releaseIcon = const Icon(Icons.refresh, color: Colors.grey),
Implementation
const ClassicHeader({
Key? key,
RefreshStyle refreshStyle = RefreshStyle.Follow,
double height = 60.0,
Duration completeDuration = const Duration(milliseconds: 600),
this.outerBuilder,
this.textStyle = const TextStyle(color: Colors.grey),
this.releaseText,
this.refreshingText,
this.canTwoLevelIcon,
this.twoLevelView,
this.canTwoLevelText,
this.completeText,
this.failedText,
this.idleText,
this.iconPos = IconPosition.left,
this.spacing = 15.0,
this.refreshingIcon,
this.failedIcon = const Icon(Icons.error, color: Colors.grey),
this.completeIcon = const Icon(Icons.done, color: Colors.grey),
this.idleIcon = const Icon(Icons.arrow_downward, color: Colors.grey),
this.releaseIcon = const Icon(Icons.refresh, color: Colors.grey),
}) : super(
key: key,
refreshStyle: refreshStyle,
completeDuration: completeDuration,
height: height,
);