Vlad Vamos
06/15/2025, 10:12 PM.testTag("...") to the expression of each argument of type Modifier (I'm using another Modifier extension, but the idea is the same).
Text("My Text") // transformed to: Text("My Text", modifier = Modifier.testTag("..."))
Text("My Second Text", modifier = Modifier.padding(5.dp)) // transformed to: Text("My Second Text", modifier = Modifier.padding(5.dp).testTag("..."))
The problem that I have is that my Modifier-extending plugin only works when the Modifier argument is already set (e.g. Text("...", modifier = Modifier.padding(5.dp)) or even just Text("...", modifier = Modifier)), but not when none is specified: Text("..."). In the latter case, the default value of the parameter is used, even though I have set the Modifier argument to an IrCallImpl equivalent to Modifier.testTag("...") , using argument[index]. What am I missing here?
For reference, this is how I do it.shikasd
06/16/2025, 1:44 AMVlad Vamos
06/16/2025, 8:36 AM