guchengxi1994 / blurred

An easy way to blur your flutter widgets and images.

Home Page:https://pub.dev/packages/blurred

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blurred

An easy way to blur your widgets and images.

blurred example

Usage

Blurred(
  Text(
    "Hello World!",
    style: TextStyle(
      fontSize: 72,
    ),
  ),
  blurValue: 3,
)

Output:

Hello World


Check the example for BlurredImage example


Acrylic

Acrylic

To easily create a container with an acrylic effect.

Example

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Acrylic Header',
      theme: ThemeData.dark(),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color.fromRGBO(12, 10, 30, 1),
      body: Stack(
        children: [
          ListView.builder(
            itemBuilder: (_, __) => ListTile(
              leading: Icon(Icons.ac_unit_rounded, size: 30),
              title: Text('Lorem Ipsum'),
            ),
          ),
          SizedBox(
            height: 80,
            child: Acrylic(
              child: Center(
                child: Row(
                  mainAxisSize: MainAxisSize.min,
                  children: [
                    FlutterLogo(size: 40),
                    SizedBox(width: 10),
                    Text('Acrylic Header', style: TextStyle(fontSize: 40)),
                  ],
                ),
              ),
            ),
          ),
        ],
      ),
    );
  }
}

Output

Acrylic Example

About

An easy way to blur your flutter widgets and images.

https://pub.dev/packages/blurred

License:MIT License


Languages

Language:Dart 71.9%Language:HTML 18.6%Language:Swift 6.8%Language:Kotlin 2.1%Language:Objective-C 0.6%