基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

home_banner_sk.dart 629 B

4 years ago
4 years ago
1234567891011121314151617181920212223
  1. import 'package:flutter/material.dart';
  2. import 'package:shimmer/shimmer.dart';
  3. class HomeBannerSkeleton extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return Container(
  7. width: double.infinity,
  8. height: 200,
  9. color: Colors.white,
  10. child: Shimmer.fromColors(
  11. baseColor: Colors.grey[300],
  12. highlightColor: Colors.grey[100],
  13. child: Container(
  14. margin: EdgeInsets.all(10),
  15. decoration: BoxDecoration(
  16. color: Colors.white,
  17. borderRadius: BorderRadius.all(Radius.circular(10))),
  18. ),
  19. ),
  20. );
  21. }
  22. }