RainbowConfig constructor
const
RainbowConfig({
- List<
Color> colors = const [Color(0xFFFF1744), Color(0xFFFF9100), Color(0xFFFFEA00), Color(0xFF00E676), Color(0xFF00B0FF), Color(0xFF651FFF), Color(0xFFAA00FF)], - double arcThickness = 25.0,
- Color backgroundColor = Colors.black,
- bool useGradient = true,
- double arcSpacing = 8.0,
- double heightRatio = 0.6,
- double positionOffset = 0.15,
- double glowIntensity = 0.5,
- int animationDuration = 3000,
- bool enableShimmer = true,
- RainbowPosition position = RainbowPosition.bottom,
- RainbowOrientation orientation = RainbowOrientation.up,
Implementation
const RainbowConfig({
this.colors = const [
Color(0xFFFF1744), // Vibrant Red
Color(0xFFFF9100), // Bright Orange
Color(0xFFFFEA00), // Sunny Yellow
Color(0xFF00E676), // Spring Green
Color(0xFF00B0FF), // Sky Blue
Color(0xFF651FFF), // Rich Indigo
Color(0xFFAA00FF), // Vivid Purple
],
this.arcThickness = 25.0,
this.backgroundColor = Colors.black,
this.useGradient = true,
this.arcSpacing = 8.0,
this.heightRatio = 0.6,
this.positionOffset = 0.15,
this.glowIntensity = 0.5,
this.animationDuration = 3000,
this.enableShimmer = true,
this.position = RainbowPosition.bottom,
this.orientation = RainbowOrientation.up,
}) : assert(positionOffset >= 0 && positionOffset <= 1),
assert(heightRatio > 0 && heightRatio <= 1),
assert(glowIntensity >= 0 && glowIntensity <= 1);