File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,17 @@ class _DashboardNutritionWidgetState extends State<DashboardNutritionWidget> {
206
206
mainAxisAlignment: MainAxisAlignment .spaceBetween,
207
207
children: < Widget > [
208
208
TextButton (
209
- child: Text (AppLocalizations .of (context).logIngredient),
209
+ child: Text (AppLocalizations .of (context).goToDetailPage),
210
+ onPressed: () {
211
+ Navigator .of (context)
212
+ .pushNamed (NutritionalPlanScreen .routeName, arguments: _plan);
213
+ },
214
+ ),
215
+ IconButton (
216
+ icon: const Icon (
217
+ Icons .history_edu,
218
+ ),
219
+ tooltip: AppLocalizations .of (context).logIngredient,
210
220
onPressed: () {
211
221
Navigator .pushNamed (
212
222
context,
@@ -219,13 +229,6 @@ class _DashboardNutritionWidgetState extends State<DashboardNutritionWidget> {
219
229
);
220
230
},
221
231
),
222
- TextButton (
223
- child: Text (AppLocalizations .of (context).goToDetailPage),
224
- onPressed: () {
225
- Navigator .of (context)
226
- .pushNamed (NutritionalPlanScreen .routeName, arguments: _plan);
227
- },
228
- ),
229
232
],
230
233
),
231
234
],
You can’t perform that action at this time.
0 commit comments