simple navigation for creating recipe

This commit is contained in:
2025-02-06 14:13:24 +01:00
parent ea23a2eaf2
commit 590666744f
6 changed files with 91 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'create_recipe_page.dart';
class OverviewPage extends StatelessWidget {
const OverviewPage({super.key});
static const String routeName = '/';
@@ -11,7 +13,8 @@ class OverviewPage extends StatelessWidget {
title: Text('Recipe Journal'),
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () {},
onPressed: () =>
Navigator.pushNamed(context, CreateRecipePage.routeName),
label: Text('Create New'),
),
);