From a310dcb1315c58a01c6bb936e647a573be293a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Talha=20Fak=C4=B1o=C4=9Flu?= <37421570+TalhaFaki@users.noreply.github.com> Date: Sat, 4 Dec 2021 13:51:18 +0300 Subject: [PATCH] Update README.md --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index b82d240..8d529f2 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,31 @@ Add the code below to your app's gradle file. ``` implementation 'com.github.TalhaFaki:ComposableSweetToast:1.0' ``` +## Usage + +For Sweet Success with Short Duration : +``` +SweetSuccess(message = "Success Text!", duration = Toast.LENGTH_SHORT) +``` +![](https://github.com/TalhaFaki/ComposableSweetToast/blob/master/success.gif) + +For Sweet Error : +``` +SweetError(message = "Error Text!") +``` +![](https://github.com/TalhaFaki/ComposableSweetToast/blob/master/error.gif) + +For Sweet Warning : +``` +SweetWarning(message = "Warning Text!") +``` +![](https://github.com/TalhaFaki/ComposableSweetToast/blob/master/warning.gif) + +For Sweet Info : +``` +SweetInfo(message = "Info Text!") +``` +![](https://github.com/TalhaFaki/ComposableSweetToast/blob/master/info.gif) + +## Sample App: +[Click here for MainScreen](https://github.com/TalhaFaki/ComposableSweetToast/blob/master/app/src/main/java/com/android/composablesweettoast/MainScreen.kt)