FModalSheetStyleDelta.delta constructor

const FModalSheetStyleDelta.delta({
  1. ImageFilter barrierFilter(
    1. double
    )?,
  2. FModalSheetMotionDelta? motion,
  3. double? flingVelocity,
  4. double? closeProgressThreshold,
})

Creates a partial modification of a FModalSheetStyle.

Parameters

Examples

// Blurred
(animation) => ImageFilter.blur(sigmaX: animation * 5, sigmaY: animation * 5);

// Solid color
(animation) => ColorFilter.mode(Colors.white.withValues(alpha: animation), BlendMode.srcOver);

// Tinted
(animation) => ColorFilter.mode(Colors.white.withValues(alpha: animation * 0.5), BlendMode.srcOver);

// Blurred & tinted
(animation) => ImageFilter.compose(
  outer: ImageFilter.blur(sigmaX: animation * 5, sigmaY: animation * 5),
  inner: ColorFilter.mode(Colors.white.withValues(alpha: animation * 0.5), BlendMode.srcOver),
);

Implementation

const factory FModalSheetStyleDelta.delta({
  ImageFilter Function(double)? barrierFilter,
  FModalSheetMotionDelta? motion,
  double? flingVelocity,
  double? closeProgressThreshold,
}) = _FModalSheetStyleDelta;