So, I've been following this article. The code below shows the snackbar state, how do I add modifier in the below code so that I can have the snackbar show in top or bottom area. My goal is to somehow add a modifier section in the snackbar to change it's color and position it.
@Composable
fun SnackbarDemoApp() {
SnackbarDemoTheme {
val appState: SnackbarDemoAppState = rememberSnackbarDemoAppState()
Scaffold(
scaffoldState = appState.scaffoldState
) {
MyNavigation(
navController = appState.navController,
showSnackbar = { message, duration ->
appState.showSnackbar(message = message, duration = duration)
}
)
}
}
}