Is there any capsulation for compose?
# compose
c
Is there any capsulation for compose?
Copy code
@Composable
fun NumberPad(
    modifier: Modifier
) {
    @Composable
    fun NumberPadButton(
        text: String,
        onClick: () -> Unit = {},
        modifier: Modifier
    ) {
        // TODO: 
    }
    // TODO:
}
internal function would be the one I am looking for, but does it look fine or is this fine?
c
Why not just have a private top-level function?
j
Try it. If it doesn't work file a bug.
c
Internal function works but the parent function becomes long so..