faded_widget 2.0.0 copy "faded_widget: ^2.0.0" to clipboard
faded_widget: ^2.0.0 copied to clipboard

A Flutter package that allows to fade a widget with a gradient of colors in any direction you prefer

faded_widget #

A Flutter package that allows to fade a widget with a gradient of colors in any direction you prefer

Features #

This widget applies a fade effect on a widget (eg an image). You can define the direction of the fade using the direction property.

Available values are:

  • GradientDirection.ttb (Top to Bottom, default)
  • GradientDirection.btt (Bottom to Top)
  • GradientDirection.ltr (Left to Right)
  • GradientDirection.rtl (Right to left)
FadedWidget(
  height: 400,
  width: 400,
  direction: GradientDirection.ltr,
  fade: [
    Colors.black,
    Colors.grey,
    Colors.white,
  ],
  child: Image(
    height: 400,
    width: 400,
    image: AssetImage('assets/image.jpg'),
    fit: BoxFit.cover,
  ),
),
8
likes
140
pub points
58%
popularity

Publisher

unverified uploader

A Flutter package that allows to fade a widget with a gradient of colors in any direction you prefer

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on faded_widget