linearLooping constant

LinearGradient const linearLooping

Runs through the Material-specified 🎨 "ROYGBIPP" then loops back to the start.

Begins Gradient at topLeft and ends at bottomRight.
Uses TileMode.repeated for good measure.

🎨 ROYGBIPP here means red, orange, yellow, green, blue, indigo, purple, pink.

To create a new LinearGradient that has these colors, consider Foils.linearLooping.copyWith(...).

four varieties of linear rainbow gradient

Implementation

//
// ignore: lines_longer_than_80_chars
/// ##### 🎨 *ROYGBIPP here means red, orange, yellow, green, blue, indigo, purple, pink.*
///
/// To create a new `LinearGradient` that has these colors,
/// consider `Foils.linearLooping.copyWith(...)`.
/// {@endtemplate}
///
/// ![four varieties of linear rainbow gradient](https://raw.githubusercontent.com/Zabadam/foil/master/doc/Foils.linear.gif)
static const linearLooping = 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.pink,
    Colors.purple,
    Colors.indigo,
    Colors.blue,
    Colors.green,
    Colors.yellow,
    Colors.orange,
    Colors.red,
  ],
);