How Can keep Sneak bar always at the bottom like t...
# compose
c
How Can keep Sneak bar always at the bottom like the one in Android Core API , independent of layout structure , below this will present within view hierarchy
Copy code
val presentSnackbar = remember { mutableStateOf(true) }
if (presentSnackbar.value)
    Snackbar(
        text = { Text(text = "This is a snackbar with a lot of text, that way it makes sense to use the new line!") },
        action = {
            ClickableText(
                text = AnnotatedString("Dismiss"),
                onClick = { presentSnackbar.value = false }
            )
        },
        actionOnNewLine = true
    )