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: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
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',
|
||||
);
|
||||
17
pubspec.yaml
17
pubspec.yaml
@@ -26,4 +26,19 @@ flutter:
|
||||
- assets/content.json
|
||||
- assets/profile.jpg
|
||||
- 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