flutterfx_blur_fade 1.0.1 copy "flutterfx_blur_fade: ^1.0.1" to clipboard
flutterfx_blur_fade: ^1.0.1 copied to clipboard

A Flutter widget that animates children with a combined blur and fade effect. Part of the FlutterFX collection of animated widgets.

example/lib/main.dart

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

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

class BlurFadeExample extends StatefulWidget {
  @override
  State<BlurFadeExample> createState() => _BlurFadeExampleState();
}

class _BlurFadeExampleState extends State<BlurFadeExample> {
  bool _isVisible = true;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              BlurFade(
                isVisible: _isVisible,
                child: const Text(
                  'Hello, World! 👋',
                  style: TextStyle(
                      fontSize: 32,
                      fontWeight: FontWeight.bold,
                      color: Colors.white),
                ),
              ),
              const SizedBox(height: 10),
              BlurFade(
                delay: const Duration(milliseconds: 100),
                isVisible: _isVisible,
                child: const Text(
                  'Nice...........',
                  style: TextStyle(
                      fontSize: 24,
                      fontWeight: FontWeight.bold,
                      color: Colors.white),
                ),
              ),
              const SizedBox(height: 10),
              BlurFade(
                delay: const Duration(milliseconds: 200),
                isVisible: _isVisible,
                child: const Text(
                  'to...........',
                  style: TextStyle(
                      fontSize: 24,
                      fontWeight: FontWeight.bold,
                      color: Colors.white),
                ),
              ),
              const SizedBox(height: 10),
              BlurFade(
                delay: const Duration(milliseconds: 300),
                isVisible: _isVisible,
                child: const Text(
                  'meet...........',
                  style: TextStyle(
                      fontSize: 24,
                      fontWeight: FontWeight.bold,
                      color: Colors.white),
                ),
              ),
              const SizedBox(height: 10),
              BlurFade(
                delay: const Duration(milliseconds: 400),
                isVisible: _isVisible,
                child: const Text(
                  'you...........',
                  style: TextStyle(
                      fontSize: 24,
                      fontWeight: FontWeight.bold,
                      color: Colors.white),
                ),
              ),
              const SizedBox(height: 60),
              ElevatedButton(
                onPressed: () => setState(() => _isVisible = !_isVisible),
                style: ElevatedButton.styleFrom(
                  minimumSize: const Size(150, 50),
                ),
                child: Text(_isVisible ? 'Hide' : 'Show'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
155
points
114
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that animates children with a combined blur and fade effect. Part of the FlutterFX collection of animated widgets.

Homepage
Repository (GitHub)
View/report issues

Topics

#animation #ui #widget #blur #fade

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutterfx_blur_fade