基础库
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shimmer_util.dart 484 B

12345678910111213141516
  1. import 'package:flutter/material.dart';
  2. import 'package:shimmer/shimmer.dart';
  3. class ShimmerUtil {
  4. static Widget getShimmerWidget({double width, double height, double radius = 0}) {
  5. return Shimmer.fromColors(
  6. baseColor: Colors.grey[300],
  7. highlightColor: Colors.grey[100],
  8. child: Container(
  9. width: width,
  10. height: height,
  11. decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(radius)),
  12. ),
  13. );
  14. }
  15. }