NxBackgroundLayer constructor
const
NxBackgroundLayer({})
Creates a background layer widget.
fromAssets
determines if the image should be loaded from assetsbackgroundColor
sets a solid background colorimagePath
specifies the path to the image (asset or network URL)imageShift
adjusts the vertical position of the backgroundimageOpacity
sets the opacity of the background image
Implementation
const NxBackgroundLayer({
this.fromAssets = true,
this.backgroundColor,
this.imagePath,
this.imageShift = 0.0,
this.imageOpacity = 1,
super.key,
});