<https://android.googlesource.com/platform/framewo...
# compose
k
https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-master-dev/compose/ui/ui-graphics/src/commonMain/kotlin/androidx/compose/ui/graphics/Brush.kt#279 is marked as internal, which means that to create a multistop linear gradient (not just an array of colors, but also an array of stops) requires to use the
ShaderBrush
+
LinearGradientShader
. Is that intentional?
a
@Nader Jawad
n
Yes in that link above we expose a Linear gradient API that accepts stops
k
Oh, nice. No need to worry about keeping the array sizes in sync
n
Yes that was the goal. It should be easier to keep track of this way