Skip to content

the-best-is-best/ComposeToast

Repository files navigation

Compose Toast


License API Profile Maven Central

Compose Toast is a Jetpack Compose library for Android to make toast.

Download

Maven Central

Compose Date Time Picker is available on mavenCentral().

implementation("io.github.the-best-is-best:compose_toast:1.0.0")

How to use

     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")
    }
    ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages