mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
comic reading
This commit is contained in:
27
lib/components/effects.dart
Normal file
27
lib/components/effects.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
part of 'components.dart';
|
||||
|
||||
class BlurEffect extends StatelessWidget {
|
||||
final Widget child;
|
||||
|
||||
final double blur;
|
||||
|
||||
const BlurEffect({
|
||||
required this.child,
|
||||
this.blur = 15,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ClipRect(
|
||||
child: BackdropFilter(
|
||||
filter: ImageFilter.blur(
|
||||
sigmaX: blur,
|
||||
sigmaY: blur,
|
||||
tileMode: TileMode.mirror,
|
||||
),
|
||||
child: child,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user