2023-06-17 20:57:57 +03:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:shimmer/shimmer.dart';
|
|
|
|
|
|
|
|
class MyShimmer extends StatelessWidget {
|
2025-03-15 23:40:48 +03:00
|
|
|
const MyShimmer({super.key, required this.hight, this.edgeInsetsMargin});
|
2023-06-17 20:57:57 +03:00
|
|
|
final double hight;
|
|
|
|
final EdgeInsets? edgeInsetsMargin;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Shimmer.fromColors(
|
2023-07-14 20:19:43 +03:00
|
|
|
baseColor: context.theme.cardColor,
|
|
|
|
highlightColor: context.theme.primaryColor,
|
2025-03-15 23:40:48 +03:00
|
|
|
child: Card(margin: edgeInsetsMargin, child: SizedBox(height: hight)),
|
2023-06-17 20:57:57 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|