Skip to content

Commit

Permalink
add recipes suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismotian committed Jun 30, 2021
1 parent 1bc3511 commit 0ef32ec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/main_layout.dart
@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'package:hello_fridge/pot_widget.dart';
import 'package:hello_fridge/recipes_suggestions_layout.dart';


import 'main.dart';

Expand Down Expand Up @@ -43,7 +45,10 @@ class _MainLayoutState extends State<MainLayout> {
ElevatedButton(
style:
ElevatedButton.styleFrom(padding: EdgeInsets.all(10.0)),
onPressed: () {},
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (context) => RecipesSuggestionsLayout()));
},
child: SizedBox(
width: 130,
height: 20,
Expand Down
20 changes: 20 additions & 0 deletions lib/recipes_suggestions_layout.dart
@@ -0,0 +1,20 @@
import 'package:flutter/material.dart';


class RecipesSuggestionsLayout extends StatefulWidget {
const RecipesSuggestionsLayout({Key? key}) : super(key: key);

@override
_RecipesSuggestionsLayoutState createState() => _RecipesSuggestionsLayoutState();
}

class _RecipesSuggestionsLayoutState extends State<RecipesSuggestionsLayout> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Recipes Suggestions"),
),
);
}
}

0 comments on commit 0ef32ec

Please sign in to comment.