import 'package:flutter/material.dart'; import 'package:shimmer/shimmer.dart'; class SkeletonCard extends StatelessWidget { const SkeletonCard({super.key}); @override Widget build(BuildContext context) { return Shimmer.fromColors( baseColor: Colors.grey[300]!, highlightColor: Colors.grey[100]!, child: Card( margin: const EdgeInsets.symmetric(vertical: 10, horizontal: 15), elevation: 4, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), child: ListTile( leading: Container(width: 50, height: 50, color: Colors.white), title: Container(width: 100, height: 15, color: Colors.white), subtitle: Container(width: 150, height: 10, color: Colors.white), ), ), ); } }