colorfilter_generator 0.0.1 copy "colorfilter_generator: ^0.0.1" to clipboard
colorfilter_generator: ^0.0.1 copied to clipboard

outdated

Collection of ColorFilter matrices that can be used with ColorFiltered and generator to create custom color filters.

ColorFilter generator and presets to use with ColorFiltered widget.

Installation #

First, add colorfilter_generator: as a dependency in your pubspec.yaml file.

Presets included: AddictiveBlue, AddictiveRed, Aden, Amaro, Ashby, Brannan, Brooklyn, Charmes, Clarendon, Crema, Dogpatch, Earlybird, F1977, Gingham, Ginza, Hefe, Helena, Hudson, Inkwell, Juno, Kelvin, Lark, LoFi, Ludwig, Maven, Mayfair, Moon, Nashville, Perpetua, Reyes, Rise, Sierra, Skyline, Slumber, Stinson, Sutro, Toaster, Valencia, Vesper, Walden, Willow, XProII

Usage #

ColorFiltered(
    colorFilter: ColorFilter.matrix(
        ColorFilterAddons.brightness(0.4),
    ),
    child: Image.network('https://example.com/path/to/image.png'),
)

Custom Filter #

class CustomFilter extends ColorFilterGenerator {
  ClarendonFilter() : super(name: "CustomFilter") {
    addSubFilters([
      ColorFilterAddons.brightness(.1),
      ColorFilterAddons.contrast(.1),
      ColorFilterAddons.saturation(.15),
    ]);
}
16
likes
0
pub points
91%
popularity

Publisher

verified publisherensorta.com

Collection of ColorFilter matrices that can be used with ColorFiltered and generator to create custom color filters.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on colorfilter_generator