تصميم عالمي جديد، وإصلاح الخرائط ومراقب السيرفرات

This commit is contained in:
Hamza-Ayed
2026-07-26 04:21:42 +03:00
parent f325ffce42
commit ca6cb7a3fe
10 changed files with 1367 additions and 673 deletions
@@ -10,6 +10,9 @@ class GlassContainer extends StatelessWidget {
final double borderRadius;
final List<Color>? gradientColors;
final double blur;
final double opacity;
final bool showBorder;
final Color? borderColor;
const GlassContainer({
super.key,
@@ -20,15 +23,35 @@ class GlassContainer extends StatelessWidget {
this.margin,
this.borderRadius = 16.0,
this.gradientColors,
this.blur = 10.0,
this.blur = 20.0,
this.opacity = 0.1,
this.showBorder = true,
this.borderColor,
});
@override
Widget build(BuildContext context) {
final defaultGradient = [
Colors.white.withOpacity(0.1),
Colors.white.withOpacity(0.05),
];
final isDark = Theme.of(context).brightness == Brightness.dark;
final cs = Theme.of(context).colorScheme;
final defaultGradient = isDark
? [
Colors.white.withValues(alpha: opacity),
Colors.white.withValues(alpha: opacity * 0.5),
]
: [
Colors.white.withValues(alpha: 0.7),
Colors.white.withValues(alpha: 0.4),
];
final effectiveBorderColor = borderColor ??
(isDark
? Colors.white.withValues(alpha: 0.15)
: Colors.white.withValues(alpha: 0.5));
final shadowColor = isDark
? Colors.black.withValues(alpha: 0.3)
: cs.shadow.withValues(alpha: 0.08);
return Container(
width: width,
@@ -38,10 +61,11 @@ class GlassContainer extends StatelessWidget {
borderRadius: BorderRadius.circular(borderRadius),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.1),
blurRadius: 20,
spreadRadius: 1,
)
color: shadowColor,
blurRadius: 24,
spreadRadius: 0,
offset: const Offset(0, 8),
),
],
),
child: ClipRRect(
@@ -52,10 +76,9 @@ class GlassContainer extends StatelessWidget {
padding: padding,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(borderRadius),
border: Border.all(
color: Colors.white.withOpacity(0.2),
width: 1.5,
),
border: showBorder
? Border.all(color: effectiveBorderColor, width: 1)
: null,
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,