Use material translations for common words

This commit is contained in:
Roland Geider
2021-04-30 18:51:38 +02:00
parent 2c0e1ef05b
commit cceefdf397
5 changed files with 5 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ void showErrorDialog(dynamic exception, BuildContext context) {
content: Text(exception.toString()),
actions: [
TextButton(
child: Text(AppLocalizations.of(context)!.dismiss),
child: Text(MaterialLocalizations.of(context).closeButtonLabel),
onPressed: () {
Navigator.of(ctx).pop();
},
@@ -76,7 +76,7 @@ void showHttpExceptionErrorDialog(WgerHttpException exception, BuildContext cont
),
actions: [
TextButton(
child: Text(AppLocalizations.of(context)!.dismiss),
child: Text(MaterialLocalizations.of(context).closeButtonLabel),
onPressed: () {
Navigator.of(ctx).pop();
},