Flutter package for response info message. It's like bootstrap view but simple.
#Important Start From Version 0.2.0
This package there are 2 type how to use:
- With GetX (GetMaterialApp) inside main
- No need context
Notif
- Without GetX (MaterialApp) inside main
- Need context
- Only for toast no need context
SnackBar Dialog Toast (Android, IOS)
DInfo.notifError('Upload', "Fail upload image");
DInfo.snackBarError(context, 'Upload Failed');
DInfo.snackBarSuccess(context, 'Upload Success');
DInfo.snackBarNetral(context, 'Add to Cart');
DInfo.snackBarCustom(context, 'Upload Success');
DInfo.snackBarCustom(context, 'Upload Success', color: Colors.green);
DInfo.snackBarCustom(context, 'Upload Success', duration: const Duration(seconds: 2));
DInfo.closeSnackBar(context);
bool? yes = await DInfo.dialogConfirmation(context,'Title','Content');
if (yes ?? false){
// execute yes
}
DInfo.dialogError(context, 'Sorry, you have no access');
DInfo.dialogSuccess(context, 'Download Success');
DInfo.dialogNetral(context, 'Add to Cart');
DInfo.closeDialog(context);
DInfo.toastError('Pick Color has Failed');
DInfo.closeToast();
Youtube: Watch
Support me for more feature & packages Donate
Check my app : Visit
Check My Tutorial & Course : Watch