Skip to content

Gradient

Ivan Galkin edited this page Jan 1, 2024 · 1 revision

FPCGradientMask

Widget for overlaying a gradient mask.
Example of using a component:

FPCGradientMask(
  gradient: Gradient(),
  child: const Child(),
),

FPCLinearGradient

Standard LinearGradient widget are guided by theme config. Example of using a class:

FPCLinearGradient(
  context,
  colors: const [
    firstColor,
    secondColor,
  ],
),

FPCRadialGradient

Standard RadialGradient widget are guided by theme config.
Example of using a class:

FPCRadialGradient(
  context,
  colors: const [
    firstColor,
    secondColor,
  ],
),

FPCSweepGradient

Standard SweepGradient widget are guided by theme config.
Example of using a class:

FPCSweepGradient(
  context,
  colors: const [
    firstColor,
    secondColor,
  ],
),

Clone this wiki locally