Created empty overview page

This commit is contained in:
2025-02-05 14:44:03 +01:00
parent 1b702d04b2
commit ea23a2eaf2
2 changed files with 29 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'pages/overview_page.dart';
void main() {
runApp(const RecipeJournal());
}
@@ -12,9 +14,16 @@ class RecipeJournal extends StatelessWidget {
return MaterialApp(
title: 'Recipe Journal',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.deepPurple,
brightness: Brightness.dark,
),
useMaterial3: true,
),
routes: {
OverviewPage.routeName: (context) => OverviewPage(),
},
initialRoute: OverviewPage.routeName,
);
}
}

View File

@@ -0,0 +1,19 @@
import 'package:flutter/material.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: () {},
label: Text('Create New'),
),
);
}
}