Created
October 11, 2021 15:27
-
-
Save vijayinyoutube/cb844bf5c69f5e35074ade3e6af7aae5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ShimmerWidget extends StatelessWidget { | |
const ShimmerWidget({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Padding( | |
padding: const EdgeInsets.symmetric(horizontal: 5.00, vertical: 5.00), | |
child: SizedBox( | |
child: Shimmer.fromColors( | |
baseColor: Colors.grey.shade300, | |
highlightColor: Colors.grey.shade400, | |
child: Container( | |
height: 30, | |
color: Colors.grey.shade300, | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment