Created empty overview page
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'pages/overview_page.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
runApp(const RecipeJournal());
|
runApp(const RecipeJournal());
|
||||||
}
|
}
|
||||||
@@ -12,9 +14,16 @@ class RecipeJournal extends StatelessWidget {
|
|||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Recipe Journal',
|
title: 'Recipe Journal',
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
colorScheme: ColorScheme.fromSeed(
|
||||||
|
seedColor: Colors.deepPurple,
|
||||||
|
brightness: Brightness.dark,
|
||||||
|
),
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
|
routes: {
|
||||||
|
OverviewPage.routeName: (context) => OverviewPage(),
|
||||||
|
},
|
||||||
|
initialRoute: OverviewPage.routeName,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
19
lib/pages/overview_page.dart
Normal file
19
lib/pages/overview_page.dart
Normal 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'),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user