NxBackgroundLayer constructor
const
NxBackgroundLayer({})
Creates a background layer widget.
fromAssetsdetermines if the image should be loaded from assetsbackgroundColorsets a solid background colorimagePathspecifies the path to the image (asset or network URL)imageShiftadjusts the vertical position of the backgroundimageOpacitysets 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,
});