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