MaterialHeader constructor
const
MaterialHeader({
- Key? key,
- double triggerOffset = 100,
- bool clamping = true,
- IndicatorPosition position = IndicatorPosition.above,
- Duration processedDuration = const Duration(milliseconds: 200),
- SpringDescription? spring,
- bool springRebound = false,
- SpringBuilder? readySpringBuilder,
- FrictionFactor? frictionFactor,
- bool safeArea = true,
- double? infiniteOffset,
- bool? hitOver,
- bool? infiniteHitOver,
- bool hapticFeedback = false,
- bool triggerWhenRelease = false,
- double maxOverOffset = double.infinity,
- Color? backgroundColor,
- Color? color,
- Animation<
Color?> ? valueColor, - String? semanticsLabel,
- String? semanticsValue,
- Widget? noMoreIcon,
- bool showBezierBackground = false,
- Color? bezierBackgroundColor,
- bool bezierBackgroundAnimation = false,
- bool bezierBackgroundBounce = false,
Implementation
const MaterialHeader({
this.key,
super.triggerOffset = 100,
super.clamping = true,
super.position,
super.processedDuration = const Duration(milliseconds: 200),
super.spring,
super.springRebound = false,
SpringBuilder? readySpringBuilder,
FrictionFactor? frictionFactor,
super.safeArea,
super.infiniteOffset,
super.hitOver,
super.infiniteHitOver,
super.hapticFeedback,
super.triggerWhenRelease,
super.maxOverOffset,
this.backgroundColor,
this.color,
this.valueColor,
this.semanticsLabel,
this.semanticsValue,
this.noMoreIcon,
this.showBezierBackground = false,
this.bezierBackgroundColor,
this.bezierBackgroundAnimation = false,
this.bezierBackgroundBounce = false,
}) : super(
readySpringBuilder: readySpringBuilder ??
(bezierBackgroundAnimation
? kBezierSpringBuilder
: kMaterialSpringBuilder),
frictionFactor: frictionFactor ??
(showBezierBackground
? kBezierFrictionFactor
: kMaterialFrictionFactor),
horizontalFrictionFactor: frictionFactor ??
(showBezierBackground
? kBezierHorizontalFrictionFactor
: kMaterialHorizontalFrictionFactor),
);