Skip to content

Commit

Permalink
main: use monospaced font SourceCodePro
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Oct 27, 2023
1 parent 06c4aee commit 8bbe1bf
Show file tree
Hide file tree
Showing 19 changed files with 84 additions and 31 deletions.
Binary file added fonts/SourceCodePro-Black.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-BlackItalic.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-Bold.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-Italic.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-Light.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-LightItalic.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-Medium.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-Regular.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-SemiBold.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-SemiBoldItalic.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Future<void> start() async {
routeInformationParser: router.defaultRouteParser(),
title: appName,
theme: ThemeData(
fontFamily: 'SourceCodePro',
colorScheme: ColorScheme.fromSwatch().copyWith(secondary: const Color(0xffFF8000)),
),
),
Expand Down
52 changes: 50 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.2.0"
get_it:
dependency: "direct main"
description:
name: get_it
sha256: f79870884de16d689cf9a7d15eedf31ed61d750e813c538a6efb92660fea83c3
url: "https://pub.dev"
source: hosted
version: "7.6.4"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -429,10 +437,10 @@ packages:
dependency: transitive
description:
name: js
sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.5"
version: "0.6.7"
json_annotation:
dependency: transitive
description:
Expand Down Expand Up @@ -497,6 +505,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.4"
nested:
dependency: transitive
description:
name: nested
sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
package_config:
dependency: transitive
description:
Expand Down Expand Up @@ -609,6 +625,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.5.1"
provider:
dependency: transitive
description:
name: provider
sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f
url: "https://pub.dev"
source: hosted
version: "6.0.5"
pub_semver:
dependency: transitive
description:
Expand Down Expand Up @@ -677,6 +701,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.11.0"
stacked:
dependency: "direct main"
description:
name: stacked
sha256: "9b314261e675b6d153caee14c3e8fc4590e8a8f3fdd0f418d545c5963372a46f"
url: "https://pub.dev"
source: hosted
version: "3.4.1+1"
stacked_shared:
dependency: transitive
description:
name: stacked_shared
sha256: e6bc2921eb59b7c741c551fbb4060f22a543ea9c2d9351315fb58aa055b535f3
url: "https://pub.dev"
source: hosted
version: "1.4.0"
stream_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -733,6 +773,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.2"
universal_io:
dependency: transitive
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
url_launcher_platform_interface:
dependency: transitive
description:
Expand Down
62 changes: 33 additions & 29 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,33 +72,37 @@ flutter:
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
fonts:
- family: SourceCodePro
fonts:
- asset: fonts/SourceCodePro-ExtraLight.ttf
weight: 200
- asset: fonts/SourceCodePro-Light.ttf
weight: 300
- asset: fonts/SourceCodePro-Regular.ttf
weight: 400
- asset: fonts/SourceCodePro-Medium.ttf
weight: 500
- asset: fonts/SourceCodePro-Bold.ttf
weight: 600
- asset: fonts/SourceCodePro-Black.ttf
weight: 700

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware

# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
- asset: fonts/SourceCodePro-ExtraLightItalic.ttf
style: italic
weight: 200
- asset: fonts/SourceCodePro-LightItalic.ttf
style: italic
weight: 300
- asset: fonts/SourceCodePro-Italic.ttf
style: italic
weight: 400
- asset: fonts/SourceCodePro-MediumItalic.ttf
style: italic
weight: 500
- asset: fonts/SourceCodePro-BoldItalic.ttf
style: italic
weight: 600
- asset: fonts/SourceCodePro-BlackItalic.ttf
style: italic
weight: 600

0 comments on commit 8bbe1bf

Please sign in to comment.