Test Landing Page
This commit is contained in:
@@ -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: '/',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
18
lib/pages/landing_page.dart
Normal file
18
lib/pages/landing_page.dart
Normal 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')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user