d_info 0.2.2 copy "d_info: ^0.2.2" to clipboard
d_info: ^0.2.2 copied to clipboard

Flutter package for response info message like dialog, snackbar, etc.

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:

  1. With GetX (GetMaterialApp) inside main
    • No need context

    Notif

  2. Without GetX (MaterialApp) inside main
    • Need context
    • Only for toast no need context

    SnackBar Dialog Toast (Android, IOS)

Screenshot #

d_info1 d_info2 d_info3 d_info7 d_info8 d_info9 d_info10 d_info11 d_info12 d_info4 d_info5 d_info6

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

6
likes
130
pub points
82%
popularity

Publisher

verified publisherindratrisnar.com

Flutter package for response info message like dialog, snackbar, etc.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, fluttertoast, get, google_fonts

More

Packages that depend on d_info