ZeroSkeletonParagraph constructor

ZeroSkeletonParagraph({
  1. Key? key,
  2. SkeletonParagraphStyle style = const SkeletonParagraphStyle(),
})

Implementation

ZeroSkeletonParagraph({
  Key? key,
  this.style = const SkeletonParagraphStyle(),
}) : super(
        key: key,
        child: Padding(
          padding: style.padding,
          child: Column(
            children: [
              for (var i = 1; i <= style.lines; i++) ...[
                ZeroSkeletonLine(
                  style: style.lineStyle,
                ),
                if (i != style.lines)
                  SizedBox(
                    height: style.spacing,
                  )
              ]
            ],
          ),
        ),
      );