flutter_compact_dialog 0.0.2 icon indicating copy to clipboard operation
flutter_compact_dialog: ^0.0.2 copied to clipboard

This is compact dialog package for Flutter.

flutter_compact_dialog #

pub package

This is compact dialog package for Flutter.

Installation & Uses #

Add flutter_compact_dialog as a dependency in your pubspec.yaml file

dependencies:
  flutter_compact_dialog: <current version>

Import CompactDialog in your dart file.

For example #

alert

CompactDialog.alert(
    context: context,
    title: 'Info',
    body: 'This is a sample.',
    iconData: Icons.info,
    iconColor: Colors.blue,
    primaryFunction: () {
        Navigator.of(context).pop();
    },
);

confirm

CompactDialog.confirm(
  context: context,
  title: 'Warning',
  body: 'This is a sample. Do you want to run it?',
  iconData: Icons.warning,
  iconColor: Colors.yellow,
  barrierDismissible: false,
  primaryFunction: () {
    Navigator.of(context).pop();
  },
  secondaryFunction: () {
    Navigator.of(context).pop();
  },
);

progress

CompactDialog.progress(
  context: context,
  body: 'Loading...',
  isCenterBody: true,
);
0
likes
120
pub points
55%
popularity

Publisher

unverified uploader

This is compact dialog package for Flutter.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_compact_dialog