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. Widget? canTwoLevelIcon,
  10. Widget? twoLevelView,
  11. String? canTwoLevelText,
  12. String? completeText,
  13. String? failedText,
  14. String? idleText,
  15. IconPosition iconPos = IconPosition.left,
  16. double spacing = 15.0,
  17. Widget? refreshingIcon,
  18. Widget? failedIcon = const Icon(Icons.error, color: Colors.grey),
  19. Widget? completeIcon = const Icon(Icons.done, color: Colors.grey),
  20. Widget? idleIcon = const Icon(Icons.arrow_downward, color: Colors.grey),
  21. 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,
      );