Change error prompts
This commit is contained in:
@@ -11,6 +11,12 @@ class CustomAlertDialog extends StatelessWidget {
|
||||
final String? title;
|
||||
final String message;
|
||||
|
||||
factory CustomAlertDialog.fromErr(({String type, String? message}) err) =>
|
||||
CustomAlertDialog(
|
||||
title: err.message == null ? null : err.type,
|
||||
message: err.message ?? err.type,
|
||||
);
|
||||
|
||||
Future<void> show(BuildContext context) async {
|
||||
await showDialog(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user