mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Use material translations for common words
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
@@ -188,8 +188,6 @@
|
||||
"@description": {},
|
||||
"save": "Save",
|
||||
"@save": {},
|
||||
"cancel": "Cancel",
|
||||
"@cancel": {},
|
||||
"addSet": "Add set",
|
||||
"@addSet": {
|
||||
"description": "Label for the button that adds a set (to a workout day)"
|
||||
@@ -214,8 +212,6 @@
|
||||
},
|
||||
"anErrorOccurred": "An Error Occurred!",
|
||||
"@anErrorOccurred": {},
|
||||
"dismiss": "Dismiss",
|
||||
"@dismiss": {},
|
||||
"weight": "Weight",
|
||||
"@weight": {
|
||||
"description": "The weight of a workout log or body weight entry"
|
||||
|
||||
@@ -46,7 +46,7 @@ class NutritionalPlansList extends StatelessWidget {
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
child: Text(AppLocalizations.of(context)!.cancel),
|
||||
child: Text(MaterialLocalizations.of(context).cancelButtonLabel),
|
||||
onPressed: () => Navigator.of(contextDialog).pop(),
|
||||
),
|
||||
TextButton(
|
||||
|
||||
@@ -61,7 +61,7 @@ class SettingWidget extends StatelessWidget {
|
||||
content: ExerciseDetail(setting.exerciseObj),
|
||||
actions: [
|
||||
TextButton(
|
||||
child: Text(AppLocalizations.of(context)!.dismiss),
|
||||
child: Text(MaterialLocalizations.of(context).closeButtonLabel),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
|
||||
@@ -48,7 +48,7 @@ class WorkoutPlansList extends StatelessWidget {
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
child: Text(AppLocalizations.of(context)!.cancel),
|
||||
child: Text(MaterialLocalizations.of(context).cancelButtonLabel),
|
||||
onPressed: () => Navigator.of(contextDialog).pop(),
|
||||
),
|
||||
TextButton(
|
||||
|
||||
Reference in New Issue
Block a user