Popularity
2.2
Growing
Activity
3.6
-
86
1
5

Description

A library that you can use in 4 different types(Success, Error, Warning, Info) written with Jetpack Compose. You can use this toast easy.

Programming language: Kotlin
License: MIT License

Composable Sweet Toast alternatives and similar packages

Based on the "Kotlin" category.
Alternatively, view ComposableSweetToast alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Composable Sweet Toast or a related project?

Add another 'Kotlin' Package

README

Composable Sweet Toast

A library that you can use in 4 different types(Success, Error, Warning, Info) written with Jetpack Compose. You can use this toast easy.

Tech Stack:

  • Kotlin
  • Jetpack Compose
  • Material Design
  • Solid Principles
  • Custom View from Toast

How to install ?

You can add the library to your project using jitpack.io.

Add the code below to your project's settings.gradle file.

 allprojects {
        repositories {
            jcenter()
            maven { url "https://jitpack.io" }
        }
   }

Add the code below to your app's gradle file.

implementation 'com.github.tfaki:ComposableSweetToast:$latest_version'

Usage

For Sweet Success with Short Duration, Top Padding and Aligment :

SweetSuccess(message = "Success Text!", duration = Toast.LENGTH_SHORT, padding = PaddingValues(top = 16.dp), contentAlignment = Alignment.TopCenter)

For Sweet Error :

SweetError(message = "Error Text!")

For Sweet Warning :

SweetWarning(message = "Warning Text!")

For Sweet Info :

SweetInfo(message = "Info Text!")

Sample App:

Click here for MainScreen