Customizable Toast Library written with Android Jetpack Compose
SuccessComposableToast(
message = "your transaction was successful",
duration = Toast.LENGTH_SHORT,
padding = PaddingValues(bottom = 8.dp),
contentAlignment = Alignment.BottomCenter
)
ErrorComposableToast(
message = "an unexpected error occurred",
duration = Toast.LENGTH_SHORT,
padding = PaddingValues(bottom = 8.dp),
contentAlignment = Alignment.BottomCenter
)
- message : information message
- duration : How long the toast message will stay on the screen
- padding : Padding for message box
- contentAlignment : Specify in which position the toast message will appear on the screen