Changed Font and Theme
This commit is contained in:
BIN
assets/fonts/radley/Radley-Italic.ttf
Normal file
BIN
assets/fonts/radley/Radley-Italic.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/radley/Radley-Regular.ttf
Normal file
BIN
assets/fonts/radley/Radley-Regular.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:resume/pages/landing_page.dart';
|
import 'package:resume/pages/landing_page.dart';
|
||||||
|
import 'theme.dart' show darkTheme;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
runApp(const Resume());
|
runApp(const Resume());
|
||||||
@@ -12,11 +13,7 @@ class Resume extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Resume',
|
title: 'Resume',
|
||||||
theme: ThemeData(
|
theme: darkTheme,
|
||||||
colorScheme: ColorScheme.fromSeed(
|
|
||||||
seedColor: Colors.deepPurple, brightness: Brightness.dark),
|
|
||||||
useMaterial3: true,
|
|
||||||
),
|
|
||||||
routes: {
|
routes: {
|
||||||
'/': (context) => const LandingPage(),
|
'/': (context) => const LandingPage(),
|
||||||
},
|
},
|
||||||
|
|||||||
10
lib/theme.dart
Normal file
10
lib/theme.dart
Normal 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',
|
||||||
|
);
|
||||||
15
pubspec.yaml
15
pubspec.yaml
@@ -27,3 +27,18 @@ flutter:
|
|||||||
- assets/profile.jpg
|
- assets/profile.jpg
|
||||||
- assets/de_icon.png
|
- assets/de_icon.png
|
||||||
- assets/gb_icon.png
|
- assets/gb_icon.png
|
||||||
|
|
||||||
|
fonts:
|
||||||
|
- family: Radley
|
||||||
|
fonts:
|
||||||
|
- asset: assets/fonts/radley/Radley-Regular.ttf
|
||||||
|
style: normal
|
||||||
|
- asset: assets/fonts/radley/Radley-Italic.ttf
|
||||||
|
style: italic
|
||||||
|
|
||||||
|
- family: SourceSerif4
|
||||||
|
fonts:
|
||||||
|
- asset: assets/fonts/sourceserif4/SourceSerif4-VariableFont_opsz,wght.ttf
|
||||||
|
style: normal
|
||||||
|
- asset: assets/fonts/sourceserif4/SourceSerif4-Italic-VariableFont_opsz,wght.ttf
|
||||||
|
style: italic
|
||||||
Reference in New Issue
Block a user