CupertinoFooter constructor
const
CupertinoFooter({
- Key? key,
- double triggerOffset = 60,
- bool clamping = false,
- IndicatorPosition position = IndicatorPosition.behind,
- Duration processedDuration = Duration.zero,
- SpringDescription? spring,
- SpringBuilder? readySpringBuilder,
- bool springRebound = true,
- FrictionFactor? frictionFactor,
- bool safeArea = true,
- double? infiniteOffset = 60,
- bool? hitOver,
- bool? infiniteHitOver,
- bool hapticFeedback = false,
- bool triggerWhenRelease = false,
- double maxOverOffset = double.infinity,
- Color? foregroundColor,
- bool userWaterDrop = false,
- Color? backgroundColor,
- Widget? emptyWidget,
Implementation
const CupertinoFooter({
this.key,
super.triggerOffset = 60,
super.clamping = false,
super.position = IndicatorPosition.behind,
super.processedDuration = Duration.zero,
super.spring,
super.readySpringBuilder,
super.springRebound,
FrictionFactor? frictionFactor,
super.safeArea,
super.infiniteOffset = 60,
super.hitOver,
super.infiniteHitOver,
super.hapticFeedback,
super.triggerWhenRelease,
super.maxOverOffset,
this.foregroundColor,
this.userWaterDrop = false,
this.backgroundColor,
this.emptyWidget,
}) : super(
frictionFactor: frictionFactor ??
(userWaterDrop && infiniteOffset == null
? kCupertinoFrictionFactor
: null),
horizontalFrictionFactor: kCupertinoHorizontalFrictionFactor,
);