mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Use existing material localizations for "cancel" and use lower case for "add"
This commit is contained in:
@@ -155,7 +155,6 @@
|
||||
"@category": {
|
||||
"description": "Category for an exercise, ingredient, etc."
|
||||
},
|
||||
"endDate": "End date",
|
||||
"startDate": "Start date",
|
||||
"routines": "Routines",
|
||||
"newRoutine": "New routine",
|
||||
@@ -778,12 +777,8 @@
|
||||
"@imageDetailsLicenseNoticeSuffix": {
|
||||
"description": "Second part of license notice text"
|
||||
},
|
||||
"imageDetailsCancel": "CANCEL",
|
||||
"@imageDetailsCancel": {
|
||||
"description": "Cancel button text"
|
||||
},
|
||||
"imageDetailsAdd": "ADD",
|
||||
"@imageDetailsAdd": {
|
||||
"add": "add",
|
||||
"@add": {
|
||||
"description": "Add button text"
|
||||
},
|
||||
"variations": "Variations",
|
||||
|
||||
@@ -323,7 +323,7 @@ class _ImageDetailsFormState extends State<ImageDetailsForm> {
|
||||
children: [
|
||||
TextButton(
|
||||
onPressed: widget.onCancel,
|
||||
child: Text(AppLocalizations.of(context).imageDetailsCancel),
|
||||
child: Text(MaterialLocalizations.of(context).cancelButtonLabel),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
ElevatedButton(
|
||||
@@ -369,7 +369,7 @@ class _ImageDetailsFormState extends State<ImageDetailsForm> {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 32, vertical: 12),
|
||||
),
|
||||
child: Text(
|
||||
AppLocalizations.of(context).imageDetailsAdd,
|
||||
AppLocalizations.of(context).add,
|
||||
style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.white),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user