https://kotlinlang.org logo
#compose
Title
# compose
s

Se7eN

11/14/2020, 3:36 PM
How can I make a sweep gradient?
n

Nader Jawad

11/14/2020, 5:25 PM
We don't have a native sweep gradient API in compose yet but we have a demo of a color picker here that shows how too leverage the native sweep gradient API with compose here: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:compose/material/material/integration-tests/material-demos/src/main/java/androidx/compose/material/demos/ColorPickerDemo.kt;l=313?q=ColorPickerDemo
s

Se7eN

11/14/2020, 6:32 PM
Alright thanks! Couldn't find an issue about it so do I make one just for tracking or it's not needed?
n

Nader Jawad

11/14/2020, 6:40 PM
I think we already have a ticket tracking internally but there's nothing wrong with filing a duplicate if you would like. Thanks!
👍 1
7 Views