rainbow constant
RadialSteps
const rainbow
A RadialSteps that progresses through the rainbow only once.
To create a new RadialSteps
that has these colors,
consider Foils.rainbow.copyWith(...)
providing desired radius
, center
, or tileMode
, etc.
Foils.rainbow.copyWith(tileMode: TileMode.clamp)
would extend
the red band to infinity.
Implementation
static const rainbow = RadialSteps(
tileMode: TileMode.decal,
radius: 0.6,
colors: [
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.transparent,
Colors.pink,
Colors.purple,
Colors.indigo,
Colors.blue,
Colors.green,
Colors.yellow,
Colors.orange,
Colors.red,
],
);