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

31 lines
717 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,
this.height,
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),
),
),
);
}
}