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

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 #

ColorFilterGenerator myFilter = ColorFilterGenerator(
  name: "CustomFilter",
  filters: [
    ColorFilterAddons.brightness(.1),
    ColorFilterAddons.contrast(.1),
    ColorFilterAddons.saturation(.15),
    PresetFilters.ludwig,
    PresetFilters.ludwig.opacity(0.20),
  ]
);

// Usage
ColorFiltered(
  colorFilter: ColorFilter.matrix(myFilter.matrix),
  child: Image.network('https://example.com/path/to/image.png'),
)
16
likes
140
pub points
92%
popularity

Publisher

verified publisherensorta.com

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, matrix2d

More

Packages that depend on colorfilter_generator