23 lines
549 B
Dart
23 lines
549 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'create_recipe_page.dart';
|
|
|
|
class OverviewPage extends StatelessWidget {
|
|
const OverviewPage({super.key});
|
|
static const String routeName = '/';
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text('Recipe Journal'),
|
|
),
|
|
floatingActionButton: FloatingActionButton.extended(
|
|
onPressed: () =>
|
|
Navigator.pushNamed(context, CreateRecipePage.routeName),
|
|
label: Text('Create New'),
|
|
),
|
|
);
|
|
}
|
|
}
|