I'm using BackdropFilter
to achieve Gaussian blur, but the effect is completely different from AE.
The picture before using Gaussian blur is like this:
My code is like this:
BackdropFilter(
filter: ImageFilter.blur(
sigmaX: sigma.value,
sigmaY: sigma.value,
),
child: child,
)
But the effect of AE is like this:
The effect of AE looks blurrier and BackdropFilter
is implemented more like frosted glass. How can I achieve the effect of AE? I have used BoxShadow
, but it can only do shadows for the surroundings, not the overall look more blurred
I've tried the opacity of the image, and the sigma, but nothing works
final Animation<double> opacity = TweenSequence<double>(
<TweenSequenceItem<double>>[
TweenSequenceItem<double>(
tween: ConstantTween<double>(0.0),
weight: 20,
),
TweenSequenceItem<double>(
tween: Tween<double>(
begin: 0.0,
end: 0.2,
).chain(CurveTween(curve: Curves.linear)),
weight: 36,
),
TweenSequenceItem<double>(
tween: ConstantTween<double>(0.2),
weight: 4,
),
TweenSequenceItem<double>(
tween: Tween<double>(
begin: 0.2,
end: 0.06,
).chain(CurveTween(curve: Curves.linear)),
weight: 4,
),
TweenSequenceItem<double>(
tween: ConstantTween<double>(0.06),
weight: 12,
),
TweenSequenceItem<double>(
tween: Tween<double>(
begin: 0.06,
end: 0.12,
).chain(CurveTween(curve: Curves.linear)),
weight: 24,
),
],
).animate(animationController);
final Animation<double> sigma = TweenSequence<double>(
<TweenSequenceItem<double>>[
TweenSequenceItem<double>(
tween: ConstantTween<double>(80),
weight: 20,
),
TweenSequenceItem<double>(
tween: Tween<double>(
begin: 80,
end: 50,
).chain(CurveTween(curve: Curves.linear)),
weight: 36,
),
TweenSequenceItem<double>(
tween: ConstantTween<double>(50),
weight: 8,
),
TweenSequenceItem<double>(
tween: Tween<double>(
begin: 50,
end: 20,
).chain(CurveTween(curve: Curves.linear)),
weight: 12,
),
TweenSequenceItem<double>(
tween: ConstantTween<double>(20),
weight: 24,
),
],
).animate(animationController);