Files
Traders_Circuit/lib/Utils/Common/comonGlassmorphicContainer.dart

38 lines
1005 B
Dart
Raw Normal View History

2024-03-19 22:57:32 -07:00
import 'package:flutter/material.dart';
import 'package:glassmorphism/glassmorphism.dart';
Widget commonGlassContainer(
{required double width,
required double height,
required double borderradius,
required Widget customWidget}) {
return GlassmorphicContainer(
width: width,
height: height,
borderRadius: borderradius,
blur: 10,
alignment: Alignment.topCenter,
2024-03-19 22:57:32 -07:00
border: 0.9,
linearGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
2024-05-10 13:19:19 +05:30
Color(0xFF2D7AEE).withOpacity(0.14),
const Color(0xFF2D7AEE).withOpacity(0.14),
2024-03-19 22:57:32 -07:00
],
stops: const [
2024-03-19 22:57:32 -07:00
0.1,
1,
],
),
2024-05-10 13:19:19 +05:30
borderGradient: LinearGradient(
2024-03-19 22:57:32 -07:00
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
2024-05-10 13:19:19 +05:30
Color(0xff4A73FB).withOpacity(0.6),
Color(0xFF4A73FB).withOpacity(0.6),
2024-03-19 22:57:32 -07:00
],
),
child: customWidget);
}