curved_gradient

Creator: coderz1093

Last updated:

0 purchases

curved_gradient Image
curved_gradient Images

Languages

Categories

Add to Cart

Description:

curved gradient

Generate a gradient using a custom curve function.



Usage #
Container(
decoration: BoxDecoration(
gradient: CurvedGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Colors.grey, Colors.transparent],
granularity: 10,
curveGenerator: (x) => pow(sin(x * 10), 2).toDouble(),
),
),
)
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.