Compose Toast is a Jetpack Compose library for Android to make toast.
Compose Date Time Picker is available on mavenCentral()
.
implementation("io.github.the-best-is-best:compose_toast:1.0.0")
val stateToast = rememberAdvToastStates()
val coroutineScope = rememberCoroutineScope()
AdvToast.MakeToast(state = stateToast, toastType = EnumToastType.INFO, paddingBottom = 50)
...
ElevatedButton(onClick = {
coroutineScope.launch {
stateToast.show("Hello $name! Toast")
}
}) {
Text(text = "Show Toast")
}
...