dawidhyzy
10/26/2023, 11:19 AMmodifier: Modifier = Modifier
parameter to a composable function?Stylianos Gakis
10/26/2023, 2:15 PMmodif
and press enter and get this entire thing unfolded, and the cursor ends up at the end it of.
Copy paste friendly text:
modif
Default modifier for parameter list of a composable
modifier: Modifier = androidx.compose.ui.Modifier,$END$
Francesc
10/26/2023, 5:11 PMcomp
live template to add it,
@androidx.compose.runtime.Composable
fun $NAME$(modifier: androidx.compose.ui.Modifier = androidx.compose.ui.Modifier) {
$END$
}
Stylianos Gakis
10/26/2023, 5:13 PMcomp
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.