logAlert function

Future logAlert(
  1. BuildContext context,
  2. String message
)

Log the passed message and display an EzDialog for the user Should always return null via popScreen

Implementation

Future<dynamic> logAlert(
  BuildContext context,
  String message,
) {
  log(message);
  return showPlatformDialog(
    context: context,
    builder: (context) => EzDialog(
      title: const EzSelectableText('Attention:'),
      contents: [
        EzSelectableText(message),
      ],
    ),
  );
}