linearRainbow constant
LinearGradient
const linearRainbow
Consider linearLooping except instead of looping back to start, the final Colors.pink is followed by one extra Colors.red as the smooth loop.
To create a new LinearGradient
that has these colors,
consider Foils.linearRainbow.copyWith(...)
.
Implementation
static const linearRainbow = LinearGradient(
tileMode: TileMode.repeated,
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Colors.red,
Colors.orange,
Colors.yellow,
Colors.green,
Colors.blue,
Colors.indigo,
Colors.purple,
Colors.pink,
Colors.red,
],
);