Test Landing Page

This commit is contained in:
2024-12-01 16:27:22 +01:00
parent b10492493b
commit b221164b8d
2 changed files with 25 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:resume/pages/landing_page.dart';
void main() { void main() {
runApp(const Resume()); runApp(const Resume());
@@ -12,9 +13,14 @@ class Resume extends StatelessWidget {
return MaterialApp( return MaterialApp(
title: 'Resume', title: 'Resume',
theme: ThemeData( theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), colorScheme: ColorScheme.fromSeed(
seedColor: Colors.deepPurple, brightness: Brightness.dark),
useMaterial3: true, useMaterial3: true,
), ),
routes: {
'/': (context) => const LandingPage(),
},
initialRoute: '/',
); );
} }
} }

View File

@@ -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')),
],
),
);
}
}