40 lines
1007 B
Dart
40 lines
1007 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,
|
|
required double border
|
|
}) {
|
|
return GlassmorphicContainer(
|
|
width: width,
|
|
height: height,
|
|
borderRadius: borderradius,
|
|
blur: 10,
|
|
alignment: Alignment.topCenter,
|
|
border: border,
|
|
linearGradient: LinearGradient(
|
|
begin: Alignment.topLeft,
|
|
end: Alignment.bottomRight,
|
|
colors: [
|
|
Color(0xFFFFFFFF).withOpacity(0.04),
|
|
const Color(0xFFFFFFFF).withOpacity(0.05),
|
|
],
|
|
stops: const [
|
|
0.1,
|
|
1,
|
|
],
|
|
),
|
|
borderGradient: LinearGradient(
|
|
begin: Alignment.topLeft,
|
|
end: Alignment.bottomRight,
|
|
colors: [
|
|
Color(0xff434A53),
|
|
Color(0xFF434A53),
|
|
],
|
|
),
|
|
child: customWidget);
|
|
}
|