LitStarfieldContainer constructor
const
LitStarfieldContainer({
- Key? key,
- bool animated = true,
- int number = 400,
- double velocity = 0.7,
- double depth = 0.9,
- double scale = 1.5,
- Color starColor = Colors.white,
- BoxDecoration backgroundDecoration = const BoxDecoration(gradient: LinearGradient(colors: [Color(0xFF283828), Color(0xFF181818)], begin: Alignment.topRight, end: Alignment.bottomLeft)),
Creates a LitStarfieldContainer.
Implementation
const LitStarfieldContainer({
Key? key,
this.animated = true,
this.number = 400,
this.velocity = 0.7,
this.depth = 0.9,
this.scale = 1.5,
this.starColor = Colors.white,
this.backgroundDecoration = const BoxDecoration(
gradient: LinearGradient(
colors: [
Color(0xFF283828),
Color(0xFF181818),
],
begin: Alignment.topRight,
end: Alignment.bottomLeft,
),
),
}) : super(key: key);