Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created October 11, 2021 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayinyoutube/cb844bf5c69f5e35074ade3e6af7aae5 to your computer and use it in GitHub Desktop.
Save vijayinyoutube/cb844bf5c69f5e35074ade3e6af7aae5 to your computer and use it in GitHub Desktop.
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