liveview-native / liveview-client-jetpack

MIT License
99 stars 3 forks source link

JetPack -> Modifiers -> Drawing: Modifier.indication( interactionSource: InteractionSource, indication: Indication? ) #239

Open AZholtkevych opened 8 months ago

AZholtkevych commented 8 months ago

Doc: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier#(androidx.compose.ui.Modifier).indication(androidx.compose.foundation.interaction.InteractionSource,androidx.compose.foundation.Indication)

Draws visual effects for this component when interactions occur.

nelson-glauber commented 6 months ago

Draws visual effects for this component when interactions occur.

An InteractionSource must returns a Flow<Interaction>. And an Indication must return a IndicationInstance that provides a ContentDrawScope. I honestly don't know why we should implement this modifier or even how could we do it.