ToastUtils
Success Toast Message
ToastUtils are the nudge messages that are displayed on valid / invalid call of an API
Features
Error Toast Message
toastTimer
:toastTimer
is the seconds till which nudge message appears on the screen.If the message string type is
'ERROR'
, then the background colour of the nudge message appears red.
Widgets used from Flutter Material Library
SL No | Widgets | Description |
---|---|---|
1 |
| Provides tap feature |
2 |
| Creates an overlay of this message on the screen |
3 |
| If its a success message then tick Icon appears, and if its an invalid message then error icon appears, Close icon |
Files Path :
Primary Files : https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/Tost/toast_animation.dart ,