D'Info
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)
Screenshot
![d_info1](https://github.com/indratrisnar/d_info/raw/master/pic/d_info1.png)
![d_info2](https://github.com/indratrisnar/d_info/raw/master/pic/d_info2.png)
![d_info3](https://github.com/indratrisnar/d_info/raw/master/pic/d_info3.png)
![d_info7](https://github.com/indratrisnar/d_info/raw/master/pic/d_info7.png)
![d_info8](https://github.com/indratrisnar/d_info/raw/master/pic/d_info8.png)
![d_info9](https://github.com/indratrisnar/d_info/raw/master/pic/d_info9.png)
![d_info10](https://github.com/indratrisnar/d_info/raw/master/pic/d_info10.png)
![d_info11](https://github.com/indratrisnar/d_info/raw/master/pic/d_info11.png)
![d_info12](https://github.com/indratrisnar/d_info/raw/master/pic/d_info12.png)
![d_info4](https://github.com/indratrisnar/d_info/raw/master/pic/d_info4.png)
![d_info5](https://github.com/indratrisnar/d_info/raw/master/pic/d_info5.png)
![d_info6](https://github.com/indratrisnar/d_info/raw/master/pic/d_info6.png)
Usage
With GetX (GetMaterialApp)
Notif
DInfo.notifError('Upload', "Fail upload image");
Without GetX (MaterialApp)
SnackBar
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);
Dialog
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);
Toast
DInfo.toastError('Pick Color has Failed');
DInfo.closeToast();
Tutorial :
Youtube: Watch
Support me for more feature & packages Donate
Check my app : Visit
Check My Tutorial & Course : Watch