skeleton method

Widget skeleton({
  1. Key? key,
  2. BoxShape? shape,
  3. EdgeInsetsGeometry? padding,
  4. Color? color,
  5. Color? shimmerColor,
  6. Gradient? gradient,
  7. double? width,
  8. double? height,
  9. EdgeInsetsGeometry? margin,
  10. BorderRadiusGeometry? borderRadius,
  11. Duration? duration,
  12. bool active = true,
  13. VxSkeletonAnimationType type = VxSkeletonAnimationType.shimmer,
  14. double? stretchWidth,
})

Extension method to directly access VxSkeleton with any widget without wrapping or with dot operator.

show skeleton extension

Implementation

Widget skeleton(
        {Key? key,
        BoxShape? shape,
        EdgeInsetsGeometry? padding,
        Color? color,
        Color? shimmerColor,
        Gradient? gradient,
        double? width,
        double? height,
        EdgeInsetsGeometry? margin,
        BorderRadiusGeometry? borderRadius,
        Duration? duration,
        bool active = true,
        VxSkeletonAnimationType type = VxSkeletonAnimationType.shimmer,
        double? stretchWidth}) =>
    VxSkeleton(
      key: key,
      active: active,
      color: color,
      gradient: gradient,
      borderRadius: borderRadius,
      duration: duration,
      height: height,
      margin: margin,
      padding: padding,
      shape: shape,
      shimmerColor: shimmerColor,
      stretchWidth: stretchWidth,
      type: type,
      width: width,
    );