0 purchases
bootstrap alert
Default
isDismissable
autoCloseDuration
bootstrap_alert package helps to show some alerts to users. This package was inspired by Bootstrap.
Getting started #
Add the package in pubspec.yaml.
dependencies:
bootstrap_alert: latest
copied to clipboard
Usage #
BootstrapAlert(
visible: true,
status: AlertStatus.primary,
text: 'Default Primary Alert',
),
copied to clipboard
BootstrapAlert(
visible: true,
status: AlertStatus.warning,
leadingIcon: AlertIcons.warning,
text: 'Warning Alert with Icon',
),
copied to clipboard
BootstrapAlert(
visible: true,
status: AlertStatus.success,
leadingIcon: AlertIcons.success,
isDismissible: true,
text: 'Success Alert with Icon',
),
copied to clipboard
BootstrapAlert(
visible: true,
status: AlertStatus.danger,
leadingIcon: AlertIcons.warning,
isDismissible: true,
autoCloseDuration: Duration(seconds: 1),
text: 'Danger Alert with Icon, Dismiss Button and Auto Close',
),
copied to clipboard
BootstrapAlert(
visible: true,
text: 'Danger Alert with Icon, Dismiss Button and Auto Close',
borderRadius: BorderRadius.only(
topLeft: Radius.circular(36),
bottomRight: Radius.circular(36),
),
),
copied to clipboard
BootstrapAlert(
visible: true,
text: 'Danger Alert with Icon, Dismiss Button and Auto Close',
padding: EdgeInsets.all(4),
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.