Changed Font and Theme

This commit is contained in:
2024-12-05 20:26:34 +01:00
parent 35e1171623
commit ee705938f7
7 changed files with 28 additions and 6 deletions

View File

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

10
lib/theme.dart Normal file
View File

@@ -0,0 +1,10 @@
import 'package:flutter/material.dart';
ThemeData get darkTheme => ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: const Color(0xAAbb71fc),
brightness: Brightness.dark,
),
useMaterial3: true,
fontFamily: 'SourceSerif4',
);