基础组件库
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 602 B

4 years ago
12345678910111213141516171819202122
  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. child: Shimmer.fromColors(
  10. baseColor: Colors.grey[300],
  11. highlightColor: Colors.grey[100],
  12. child: Container(
  13. margin: EdgeInsets.all(10),
  14. decoration: BoxDecoration(
  15. color: Colors.white,
  16. borderRadius: BorderRadius.all(Radius.circular(10))),
  17. ),
  18. ),
  19. );
  20. }
  21. }