TwoLevelHeader constructor

const TwoLevelHeader({
  1. Key? key,
  2. double height = 80.0,
  3. BoxDecoration? decoration,
  4. TwoLevelDisplayAlignment displayAlignment = TwoLevelDisplayAlignment.fromBottom,
  5. Duration completeDuration = const Duration(milliseconds: 600),
  6. TextStyle textStyle = const TextStyle(color: const Color(0xff555555)),
  7. String? releaseText,
  8. String? refreshingText,
  9. Widget? canTwoLevelIcon,
  10. String? canTwoLevelText,
  11. String? completeText,
  12. String? failedText,
  13. String? idleText,
  14. IconPosition iconPos = IconPosition.left,
  15. double spacing = 15.0,
  16. Widget? refreshingIcon,
  17. Widget? failedIcon = const Icon(Icons.error, color: Colors.grey),
  18. Widget? completeIcon = const Icon(Icons.done, color: Colors.grey),
  19. Widget? idleIcon = const Icon(Icons.arrow_downward, color: Colors.grey),
  20. Widget? releaseIcon = const Icon(Icons.refresh, color: Colors.grey),
  21. Widget? twoLevelWidget,
})

Implementation

const TwoLevelHeader(
    {Key? key,
    this.height = 80.0,
    this.decoration,
    this.displayAlignment = TwoLevelDisplayAlignment.fromBottom,
    this.completeDuration = const Duration(milliseconds: 600),
    this.textStyle = const TextStyle(color: const Color(0xff555555)),
    this.releaseText,
    this.refreshingText,
    this.canTwoLevelIcon,
    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),
    this.twoLevelWidget});