import 'package:flutter/material.dart'; import 'package:shimmer/shimmer.dart'; import 'package:sizer/sizer.dart'; class AlreadyCustomerShimmer extends StatelessWidget { const AlreadyCustomerShimmer({super.key}); @override Widget build(BuildContext context) { final baseColor = Colors.grey[300]!; final highlightColor = Colors.grey[100]!; return ListView.builder( padding: EdgeInsets.fromLTRB(5.w, 0, 5.w, 12.h), itemCount: 6, itemBuilder: (context, index) { return Container( margin: EdgeInsets.only(bottom: 2.h), padding: EdgeInsets.all(3.w), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(4.w), border: Border.all(color: Colors.grey.shade200), ), child: Shimmer.fromColors( baseColor: baseColor, highlightColor: highlightColor, child: Row( children: [ Container( width: 12.w, height: 12.w, decoration: const BoxDecoration( color: Colors.white, shape: BoxShape.circle, ), ), SizedBox(width: 4.w), Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( width: 40.w, height: 1.5.h, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(1.w), ), ), SizedBox(height: 1.h), Container( width: 25.w, height: 1.2.h, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(1.w), ), ), ], ), ), Container( width: 5.w, height: 5.w, decoration: const BoxDecoration( color: Colors.white, shape: BoxShape.circle, ), ), ], ), ), ); }, ); } }