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

@@ -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(

View File

@@ -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();
},

View File

@@ -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(