BackdropFilter Widget
Project Preview
- Interested in seeing the live demo? Click here to explore.
- Want to view the source code? Visit the project on GitHub.
Code Snippet
import 'dart:ui';
import 'package:flutter/material.dart';
class BackdropFilterWidget extends StatelessWidget {
const BackdropFilterWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("BackdropFilter Widget"),
),
body: Stack(
children: [
Text(
'0' * 10000,
style: const TextStyle(
color: Colors.green,
),
),
Center(
child: ClipRect(
child: BackdropFilter(
filter: ImageFilter.blur(
sigmaX: 4.0,
sigmaY: 4.0,
),
child: Container(
alignment: Alignment.center,
width: 250,
height: 250,
child: const Text('Blur'),
),
),
),
)
],
),
);
}
}