NxPhotoCard constructor

const NxPhotoCard({
  1. Key? key,
  2. String? imagePath,
  3. double? elevation,
  4. Widget? child,
  5. double? height,
  6. double? width,
})

Creates a photo card widget.

  • imagePath - Path to the asset image to display
  • elevation - Card's elevation (shadow)
  • child - Custom widget to display instead of an image
  • height - Height of the card
  • width - Width of the card

Implementation

const NxPhotoCard({
  super.key,
  this.imagePath,
  this.elevation,
  this.child,
  this.height,
  this.width,
});