/rich_alert

An alert dialog package for the "rich". This package helps you to render an un-traditional alert dialog in your Flutter app 😃

Primary LanguageDartMIT LicenseMIT

rich_alert

An alert dialog package for the "rich". This package helps you to render an un-traditional alert dialog in your Flutter app 😃

Support

This package supports usage on both Android and iOS builds.

Adding to your flutter project

Add rich_alert as a dependency in your pubspec.yaml file

rich_alert: ^0.1.32

Use the package

Import the library in your dart file

import 'package:rich_alert/rich_alert.dart';

Example

showDialog(
  context: context,
  builder: (BuildContext context) {
    return RichAlertDialog( //uses the custom alert dialog
      alertTitle: richTitle("Alert title"),
      alertSubtitle: richSubtitle("Subtitle"),
      alertType: RichAlertType.WARNING,      
    );
  }
);

Check examples

Screenshots