From b221164b8d50b382395d3bf0e1406a165e59b704 Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 1 Dec 2024 16:27:22 +0100 Subject: [PATCH] Test Landing Page --- lib/main.dart | 8 +++++++- lib/pages/landing_page.dart | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lib/pages/landing_page.dart diff --git a/lib/main.dart b/lib/main.dart index 7b88546..1220c0d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:resume/pages/landing_page.dart'; void main() { runApp(const Resume()); @@ -12,9 +13,14 @@ class Resume extends StatelessWidget { return MaterialApp( title: 'Resume', theme: ThemeData( - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + colorScheme: ColorScheme.fromSeed( + seedColor: Colors.deepPurple, brightness: Brightness.dark), useMaterial3: true, ), + routes: { + '/': (context) => const LandingPage(), + }, + initialRoute: '/', ); } } diff --git a/lib/pages/landing_page.dart b/lib/pages/landing_page.dart new file mode 100644 index 0000000..d95c662 --- /dev/null +++ b/lib/pages/landing_page.dart @@ -0,0 +1,18 @@ +import 'package:flutter/material.dart'; + +class LandingPage extends StatelessWidget { + const LandingPage({super.key}); + static const String routeName = '/'; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Landing'), + actions: [ + TextButton(onPressed: () {}, child: const Text('Source Code')), + ], + ), + ); + } +}