File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
2+ import 'package:food_recipe/src/ui/listmeals/list_meals.dart' ;
23import 'package:food_recipe/values/color_assets.dart' ;
34
45import 'ui/favorite/favorite_screen.dart' ;
56import 'ui/home/home_screen.dart' ;
7+ import 'utils/utils.dart' ;
68
79class App extends StatefulWidget {
810 @override
@@ -15,6 +17,11 @@ class _AppState extends State<App> {
1517 @override
1618 Widget build (BuildContext context) {
1719 return MaterialApp (
20+ routes: {
21+ navigatorListMeals: (context) {
22+ return ListMeals ();
23+ }
24+ },
1825 theme: ThemeData (
1926 primaryColor: ColorAssets .primarySwatchColor,
2027 accentColor: ColorAssets .accentColor,
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ class _HomeScreenState extends State<HomeScreen> {
115115 padding: const EdgeInsets .only (right: 4.0 ),
116116 child: GestureDetector (
117117 onTap: () {
118- // TODO: do something in here
118+ Navigator . pushNamed (context, navigatorListMeals);
119119 },
120120 child: Card (
121121 shape: RoundedRectangleBorder (
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import 'dart:io' show Platform;
33import 'package:flutter/cupertino.dart' ;
44import 'package:flutter/material.dart' ;
55
6+ const navigatorListMeals = "/list_meals" ;
7+
68Widget buildCircularProgressIndicator () {
79 if (Platform .isIOS) {
810 return CupertinoActivityIndicator ();
You can’t perform that action at this time.
0 commit comments