simple navigation for creating recipe
This commit is contained in:
@@ -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'),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user