blur

A blur wrapper widget that blurs it's child blur

Add dependency

dependencies:
  blur: ^0.0.1

Import

import 'package:blur/blur.dart'

Usage

Blur(
  blur: 0.5,
  child: Text(
      'Text',
      style: Theme.of(context).textTheme.headline3,
    ),
  ),
  blurColor: Colors.blueAccent,
  borderRadius: 30,
  overlayChild: Center(child: Text('Blur')),
)

Output

blur_text

Normal Image

normal_image

Input

ImageBlur.asset(
  'assets/cat.webp',
  colorOpacity: 0,
  scale: 4,
  borderRadius: 20,
  blur: blurValue,
),

Output

blur_image

Libraries

blur