dlgAlert method

Future<void> dlgAlert({
  1. required String message,
  2. double? height,
  3. String? title,
  4. double? width,
})

Provides a simple way to display a message to the user that must be dismissed.

Implementation

Future<void> dlgAlert({
  required String message,
  double? height,
  String? title,
  double? width,
}) async {
  return dlgCustom(
    actions: [
      _buildButton<void>("OK"),
    ],
    content: Text(
      message,
      softWrap: true,
      overflow: TextOverflow.ellipsis,
      style: TextStyle(color: _getTheme().contentColor),
    ),
    height: height,
    title: title ?? "Attention",
    width: width,
  );
}