I always have a default Modifier in composbles, so I updated the
comp
live template to add it,
Copy code
@androidx.compose.runtime.Composable
fun $NAME$(modifier: androidx.compose.ui.Modifier = androidx.compose.ui.Modifier) {
$END$
}
👍 1
s
Stylianos Gakis
10/26/2023, 5:13 PM
Yes, that works too ^^ it's really easy to play with live templates so go crazy.
I didn't integrate it in the
comp
template since you often also want composables that return values so they don't take in modifier, and I really hate having to remove things after using a live template as opposed to just using 2 live templates in the first place.