TIF_NGANJUK_E41212036/lib/presentation/widgets/shimer/skeleton_widget.dart

30 lines
732 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:shimmer/shimmer.dart';
class SkeletonWidget extends StatelessWidget {
final double height;
final double width;
const SkeletonWidget({
Key? key,
required this.height,
required this.width,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Shimmer.fromColors(
baseColor: Colors.grey[200]!,
highlightColor: Colors.grey[50]!,
child: Container(
height: height,
width: width,
decoration: BoxDecoration(
color: Colors.grey[300],
borderRadius: BorderRadius.circular(10.r),
),
),
);
}
}