ClassicHeader constructor

const ClassicHeader({
  1. Key? key,
  2. RefreshStyle refreshStyle = RefreshStyle.follow,
  3. double height = 60.0,
  4. Duration completeDuration = const Duration(milliseconds: 600),
  5. OuterBuilder? outerBuilder,
  6. TextStyle textStyle = const TextStyle(color: Colors.grey),
  7. String? releaseText,
  8. String? refreshingText,
  9. String? completeText,
  10. String? failedText,
  11. String? idleText,
  12. IconPosition iconPos = IconPosition.left,
  13. double spacing = 15.0,
  14. Widget? refreshingIcon,
  15. Widget? failedIcon = const Icon(Icons.error, color: Colors.grey),
  16. Widget? completeIcon = const Icon(Icons.done, color: Colors.grey),
  17. Widget? idleIcon = const Icon(Icons.arrow_downward, color: Colors.grey),
  18. Widget? releaseIcon = const Icon(Icons.refresh, color: Colors.grey),
})

Implementation

const ClassicHeader({
  super.key,
  super.refreshStyle,
  super.height,
  super.completeDuration = const Duration(milliseconds: 600),
  this.outerBuilder,
  this.textStyle = const TextStyle(color: Colors.grey),
  this.releaseText,
  this.refreshingText,
  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),
});