blur_container 0.0.2 copy "blur_container: ^0.0.2" to clipboard
blur_container: ^0.0.2 copied to clipboard

A Flutter package for both android and iOS which provides Widget to blur a container.

example/main.dart

import 'package:blur_container/blur_container.dart';
import 'package:flutter/material.dart';

class BlurContainerExample extends StatefulWidget {
  const BlurContainerExample({Key? key}) : super(key: key);

  @override
  State<BlurContainerExample> createState() => _BlurContainerExampleState();
}

class _BlurContainerExampleState extends State<BlurContainerExample> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Stack(
      children: [
        Image.asset(
          "assets/images/image1.jpg",
          fit: BoxFit.cover,
          height: double.infinity,
          width: double.infinity,
          alignment: Alignment.center,
        ),
        Center(
          child: BlurContainerWidget(
            width: MediaQuery.of(context).size.width * 0.80,
            height: 150,
            borderRadius: BorderRadius.circular(10),
            child: const Center(
              child: Text(
                'Hello World',
                style: TextStyle(
                  color: Color.fromARGB(255, 255, 255, 255),
                  letterSpacing: 4,
                  fontSize: 45,
                  fontWeight: FontWeight.w100,
                ),
              ),
            ),
          ),
        ),
      ],
    ));
  }
}
12
likes
150
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for both android and iOS which provides Widget to blur a container.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on blur_container