bs_flutter_alert 1.0.1
bs_flutter_alert: ^1.0.1 copied to clipboard

Bootstrap alert to provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

bs_flutter_alert #

Alt text

Bootstrap alert to provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Getting Started #

Add the dependency in pubspec.yaml:

dependencies:
  ...
  bs_flutter: any

Alert #

Alert success

// ...
  BsAlert(
    closeButton: true,
    margin: EdgeInsets.only(bottom: 10.0),
    child: Text('Alert Primary'),
  ),
// ...

Alert with Heading

// ...
  BsAlert(
    closeButton: true,
    margin: EdgeInsets.only(bottom: 10.0),
    style: BsAlertStyle.success,
    heading: Text('Hello World'),
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Text('Alert Dark'),
      ],
    ),
  )
// ...

You can create custom alert style using BsAlertStyle and alert color using BsAlertColor

  static const BsAlertColor primary = BsAlertColor(
    color: Color(0xff084298),
    backgroundColor: Color(0xffcfe2ff),
    borderColor: Color(0xffb6d4fe),
  );
  static const BsAlertStyle primary = BsAlertStyle(
    color: BsAlertColor.primary,
    borderRadius: BorderRadius.all(Radius.circular(5.0)),
  );
2
likes
130
pub points
61%
popularity

Bootstrap alert to provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

bs_flutter_utils, flutter, flutter_web_plugins

More

Packages that depend on bs_flutter_alert