NxShimmerBox constructor

const NxShimmerBox({
  1. Key? key,
  2. double width = double.infinity,
  3. double height = double.infinity,
  4. double opacity = 1,
  5. Color? color,
})

Creates a shimmer box widget.

  • width - Width of the box (defaults to screen width)
  • height - Height of the box (defaults to screen height)
  • opacity - Opacity of the shimmer effect (defaults to 1.0)
  • color - Background color of the box

Implementation

const NxShimmerBox({
  super.key,
  this.width = double.infinity,
  this.height = double.infinity,
  this.opacity = 1,
  this.color,
});