Files
umbrix/lib/core/widget/shimmer_skeleton.dart
Umbrix Developer 76a374950f feat: mobile-like window size and always-visible stats
- Changed window size to mobile phone format (400x800)
- Removed width condition for ActiveProxyFooter - now always visible
- Added run-umbrix.sh launch script with icon copying
- Stats cards now display on all screen sizes
2026-01-17 13:09:20 +03:00

41 lines
968 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:umbrix/core/widget/skeleton_widget.dart';
class ShimmerSkeleton extends StatelessWidget {
const ShimmerSkeleton({
this.width,
this.height,
this.widthFactor,
this.heightFactor,
this.color,
this.duration = const Duration(seconds: 1),
super.key,
});
final double? width;
final double? height;
final double? widthFactor;
final double? heightFactor;
final Color? color;
final Duration duration;
@override
Widget build(BuildContext context) {
return Skeleton(
width: width,
height: height,
widthFactor: widthFactor,
heightFactor: heightFactor,
)
.animate(
onPlay: (controller) => controller.loop(),
)
.shimmer(
duration: duration,
angle: 45,
color: color ?? Theme.of(context).colorScheme.secondary,
);
}
}