An alert dialog package for the "rich". This package helps you to render an un-traditional alert dialog in your Flutter app 😃
This package supports usage on both Android and iOS builds.
Add rich_alert
as a dependency in your pubspec.yaml file
rich_alert: ^0.1.32
Import the library in your dart file
import 'package:rich_alert/rich_alert.dart';
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