Files
Traders_Circuit/lib/Utils/Common/comonGlassmorphicContainer.dart
Rajshinde046 6fd6ea9535 color change
2024-05-10 13:19:19 +05:30

38 lines
1005 B
Dart

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,
border: 0.9,
linearGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xFF2D7AEE).withOpacity(0.14),
const Color(0xFF2D7AEE).withOpacity(0.14),
],
stops: const [
0.1,
1,
],
),
borderGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xff4A73FB).withOpacity(0.6),
Color(0xFF4A73FB).withOpacity(0.6),
],
),
child: customWidget);
}