Foils class abstract
Pre-rolled Gradient
s for deployment as Foil.gradient
or anywhere else a Gradient
is called for.
Like some things, but want ot change others? Try out Gradient.copyWith()
.
- linearRainbow + linearReversed
- linearLooping + linearLoopingReversed
- gymClassParachute + sitAndSpin
- oilslick
- stepBowLinear, stepBowRadial + stepBowSweep
- rainbow decal
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- glass → const LinearGradient
-
A
LinearGradient
from topLeft to bottomRight that resembles a pane of glass, with streaks of more-opaque white slicing the gradient. - gymClassParachute → const SweepSteps
-
A multicolored
SweepSteps
that looks like a children's gymnasium teamwork-activity parachute. - linearLooping → const LinearGradient
- Runs through the Material-specified 🎨 "ROYGBIPP" then loops back to the start.
- linearLoopingReversed → const LinearGradient
- Consider linearLooping but progresses: "PPIBGYOR".
- linearRainbow → const LinearGradient
- Consider linearLooping except instead of looping back to start, the final Colors.pink is followed by one extra Colors.red as the smooth loop.
- linearReversed → const LinearGradient
- Consider linearRainbow except the order of colors is reversed.
- oilslick → const RadialGradient
- A RadialGradient that resembles a stylized oil slick.
- rainbow → const RadialSteps
-
A
RadialSteps
that progresses through the rainbow only once. - sitAndSpin → const SweepGradient
-
A multicolored SweepGradient that looks like a children's gymnasium
teamwork-activity parachute or the classic children's toy "Sit'n Spin",
but with blurry edges as if it were spinning. - stepBowLinear → const LinearSteps
-
A
LinearSteps
that progresses through the rainbow. - stepBowRadial → const RadialSteps
-
A
RadialSteps
that progresses through the rainbow. - stepBowSweep → const SweepSteps
-
A
SweepSteps
that progresses through the rainbow.