Analogue of ComposeShader in Flutter


I'm searching of analogue of Androids ComposeShader in Flutter.

My code in Android app

SweepGradient sweepGradient = new SweepGradient(width / 2, height / 2, colors, null);
RadialGradient radialGradient = new RadialGradient(width / 2, height / 2, colorWheelRadius, 0xFFFFFFFF, 0x00FFFFFF, TileMode.CLAMP);
ComposeShader composeShader = new ComposeShader(sweepGradient, radialGradient, PorterDuff.Mode.SRC_OVER);

I try to reproduce this code in Flutter, but I can't find ComposeShader

SweepGradient sweepGradient = SweepGradient(colors: colors);
RadialGradient radialGradient = RadialGradient(colors: radialColors, tileMode: TileMode.clamp);

Is there an analogue in Flutter? or similar class.

asked on Stack Overflow Sep 2, 2020 by Roman Kazov

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0