File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 122
122
"@searchExercise": {
123
123
"description": "Label on set form. Selected exercises are added to the set"
124
124
},
125
+ "noIngredientsDefined": "No ingredients defined yet",
125
126
"noMatchingExerciseFound": "No matching exercises found",
126
127
"@noMatchingExerciseFound": {
127
128
"description": "Message returned if no exercises match the searched string"
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class _LogMealScreenState extends State<LogMealScreen> {
51
51
52
52
return Scaffold (
53
53
appBar: AppBar (
54
- title: const Text ('Log meal to diary' ),
54
+ title: Text (AppLocalizations . of (context).logMeal ),
55
55
),
56
56
body: Consumer <NutritionPlansProvider >(
57
57
builder: (context, nutritionProvider, child) => SingleChildScrollView (
@@ -64,7 +64,7 @@ class _LogMealScreenState extends State<LogMealScreen> {
64
64
children: [
65
65
Text (meal.name, style: Theme .of (context).textTheme.headlineSmall),
66
66
if (meal.mealItems.isEmpty)
67
- const ListTile (title: Text ('No ingredients defined yet' ))
67
+ ListTile (title: Text (AppLocalizations . of (context).noIngredientsDefined ))
68
68
else
69
69
Column (
70
70
children: [
Original file line number Diff line number Diff line change @@ -162,9 +162,9 @@ class _MealWidgetState extends State<MealWidget> {
162
162
const DiaryheaderTile (),
163
163
if (_viewMode == viewMode.withIngredients || _viewMode == viewMode.withAllDetails)
164
164
if (widget._meal.mealItems.isEmpty && widget._meal.isRealMeal)
165
- const NutritionTile (
165
+ NutritionTile (
166
166
title: Text (
167
- 'No ingredients defined yet' ,
167
+ AppLocalizations . of (context).noIngredientsDefined ,
168
168
textAlign: TextAlign .left,
169
169
))
170
170
else
You can’t perform that action at this time.
0 commit comments