backgroundBlur method

Widget backgroundBlur(
  1. double sigma, {
  2. Key? key,
  3. bool animate = false,
})

Implementation

Widget backgroundBlur(
  double sigma, {
  Key? key,
  bool animate = false,
}) =>
    animate
        ? _StyledAnimatedBuilder(
            key: key,
            builder: (animation) {
              return _AnimatedBackgroundBlur(
                child: this,
                sigma: sigma,
                duration: animation.duration,
                curve: animation.curve,
              );
            },
          )
        : BackdropFilter(
            key: key,
            filter: ImageFilter.blur(
              sigmaX: sigma,
              sigmaY: sigma,
            ),
            child: this,
          );