image_gradient

Creator: coderz1093

Last updated:

Add to Cart

Description:

image gradient

image_gradient #
This package can be used to apply gradient to image in Flutter.
The best usecase is to apply colors to grayscale images. For example light beams.
Demo #
Live Demo

Installation #
dependencies:
...
image_gradient: ^0.0.2
copied to clipboard
Usage #
ImageGradient(
image: Image.asset("assets/light.png"),
gradient: const RadialGradient(colors: [Colors.deepOrange, Colors.purpleAccent]),
)
copied to clipboard
Alternative constructors #
Linear Gradient #
ImageGradient.linear(
image: Image.asset("assets/light.png"),
colors: const [Colors.yellow, Colors.pinkAccent],
)
copied to clipboard
Radial Gradient #
ImageGradient.radial(
image: Image.asset("assets/light.png"),
colors: const [Colors.yellow, Colors.pinkAccent],
)
copied to clipboard
Sweep Gradient #
ImageGradient.sweep(
image: Image.asset("assets/light.png"),
colors: const [Colors.yellow, Colors.pinkAccent],
)
copied to clipboard

License

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

Files:

Customer Reviews

There are no reviews.