ImageFilter method
Widget
ImageFilter(
{ - dynamic brightness,
- dynamic saturation,
- dynamic hue,
- dynamic child,
})
Implementation
Widget ImageFilter({brightness, saturation, hue, child}) {
return ColorFiltered(
colorFilter:
ColorFilter.matrix(ColorFilterGenerator.brightnessAdjustMatrix(
value: brightness,
)),
child: ColorFiltered(
colorFilter:
ColorFilter.matrix(ColorFilterGenerator.saturationAdjustMatrix(
value: saturation,
)),
child: ColorFiltered(
colorFilter:
ColorFilter.matrix(ColorFilterGenerator.hueAdjustMatrix(
value: hue,
)),
child: child,
)));
}