64 lines
1.3 KiB
Dart
64 lines
1.3 KiB
Dart
import 'dart:ui';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
class CommonBlurLeft extends StatelessWidget {
|
|
const CommonBlurLeft({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Positioned(
|
|
top: 150,
|
|
left: -50,
|
|
child: Container(
|
|
height: 200,
|
|
width: 200,
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: Color(0xFF001D54).withOpacity(0.5),
|
|
),
|
|
child: BackdropFilter(
|
|
filter: ImageFilter.blur(sigmaX: 30, sigmaY: 30),
|
|
child: Container(
|
|
height: 200,
|
|
width: 200,
|
|
color: Colors.transparent,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
class CommonBlurRight extends StatelessWidget {
|
|
const CommonBlurRight({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Positioned(
|
|
top: 450,
|
|
right: -50,
|
|
child: Container(
|
|
height: 200,
|
|
width: 200,
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: Color(0xFF001D54).withOpacity(0.5),
|
|
),
|
|
child: BackdropFilter(
|
|
filter: ImageFilter.blur(sigmaX: 30, sigmaY: 30),
|
|
child: Container(
|
|
height: 200,
|
|
width: 200,
|
|
color: Colors.transparent,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|