selectedImage2 method
Implementation
Widget selectedImage2(File file) {
if (!isAdjust) {
return Image.file(
file,
filterQuality: FilterQuality.medium,
);
} else {
return WidgetToImage(
builder: (key) {
this.key1 = key;
return ImageFilter(
hue: _currentHue == null ? 0.0 : _currentHue / 100,
brightness:
_currentBrightness == null ? 0.0 : _currentBrightness / 100,
saturation:
_currentSaturnation == null ? 0.0 : _currentSaturnation / 100,
child: Image.file(file));
},
);
}
}