How can I implement a real-time camera filter in Flutter?
There is no method or an object in the camera plugin that can do this task. But I think you can do this effect by wrapping the CameraPreview Widget in a ShaderMask Widget . Then you can add filters by by using a LinearGradient Widget and your custom colours in the shaderCallBack Method and enhance it by specifying a BlendMode in the blendmode named parameter .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With