diff --git a/fonts/SourceCodePro-Black.ttf b/fonts/SourceCodePro-Black.ttf new file mode 100644 index 00000000..09078e0d Binary files /dev/null and b/fonts/SourceCodePro-Black.ttf differ diff --git a/fonts/SourceCodePro-BlackItalic.ttf b/fonts/SourceCodePro-BlackItalic.ttf new file mode 100644 index 00000000..749bbf6d Binary files /dev/null and b/fonts/SourceCodePro-BlackItalic.ttf differ diff --git a/fonts/SourceCodePro-Bold.ttf b/fonts/SourceCodePro-Bold.ttf new file mode 100644 index 00000000..4653b76c Binary files /dev/null and b/fonts/SourceCodePro-Bold.ttf differ diff --git a/fonts/SourceCodePro-BoldItalic.ttf b/fonts/SourceCodePro-BoldItalic.ttf new file mode 100644 index 00000000..59e9319a Binary files /dev/null and b/fonts/SourceCodePro-BoldItalic.ttf differ diff --git a/fonts/SourceCodePro-ExtraBold.ttf b/fonts/SourceCodePro-ExtraBold.ttf new file mode 100644 index 00000000..b3ba5507 Binary files /dev/null and b/fonts/SourceCodePro-ExtraBold.ttf differ diff --git a/fonts/SourceCodePro-ExtraBoldItalic.ttf b/fonts/SourceCodePro-ExtraBoldItalic.ttf new file mode 100644 index 00000000..6b2d4a4a Binary files /dev/null and b/fonts/SourceCodePro-ExtraBoldItalic.ttf differ diff --git a/fonts/SourceCodePro-ExtraLight.ttf b/fonts/SourceCodePro-ExtraLight.ttf new file mode 100644 index 00000000..9f04a497 Binary files /dev/null and b/fonts/SourceCodePro-ExtraLight.ttf differ diff --git a/fonts/SourceCodePro-ExtraLightItalic.ttf b/fonts/SourceCodePro-ExtraLightItalic.ttf new file mode 100644 index 00000000..03f4a741 Binary files /dev/null and b/fonts/SourceCodePro-ExtraLightItalic.ttf differ diff --git a/fonts/SourceCodePro-Italic.ttf b/fonts/SourceCodePro-Italic.ttf new file mode 100644 index 00000000..62604485 Binary files /dev/null and b/fonts/SourceCodePro-Italic.ttf differ diff --git a/fonts/SourceCodePro-Light.ttf b/fonts/SourceCodePro-Light.ttf new file mode 100644 index 00000000..ccc3a424 Binary files /dev/null and b/fonts/SourceCodePro-Light.ttf differ diff --git a/fonts/SourceCodePro-LightItalic.ttf b/fonts/SourceCodePro-LightItalic.ttf new file mode 100644 index 00000000..9ab74ba3 Binary files /dev/null and b/fonts/SourceCodePro-LightItalic.ttf differ diff --git a/fonts/SourceCodePro-Medium.ttf b/fonts/SourceCodePro-Medium.ttf new file mode 100644 index 00000000..af3f57c5 Binary files /dev/null and b/fonts/SourceCodePro-Medium.ttf differ diff --git a/fonts/SourceCodePro-MediumItalic.ttf b/fonts/SourceCodePro-MediumItalic.ttf new file mode 100644 index 00000000..ceab90b7 Binary files /dev/null and b/fonts/SourceCodePro-MediumItalic.ttf differ diff --git a/fonts/SourceCodePro-Regular.ttf b/fonts/SourceCodePro-Regular.ttf new file mode 100644 index 00000000..b1fa336c Binary files /dev/null and b/fonts/SourceCodePro-Regular.ttf differ diff --git a/fonts/SourceCodePro-SemiBold.ttf b/fonts/SourceCodePro-SemiBold.ttf new file mode 100644 index 00000000..834b4d65 Binary files /dev/null and b/fonts/SourceCodePro-SemiBold.ttf differ diff --git a/fonts/SourceCodePro-SemiBoldItalic.ttf b/fonts/SourceCodePro-SemiBoldItalic.ttf new file mode 100644 index 00000000..9c126e39 Binary files /dev/null and b/fonts/SourceCodePro-SemiBoldItalic.ttf differ diff --git a/lib/main.dart b/lib/main.dart index 0573490c..ca72766d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -18,6 +18,7 @@ Future start() async { routeInformationParser: router.defaultRouteParser(), title: appName, theme: ThemeData( + fontFamily: 'SourceCodePro', colorScheme: ColorScheme.fromSwatch().copyWith(secondary: const Color(0xffFF8000)), ), ), diff --git a/pubspec.lock b/pubspec.lock index a0b821d9..b44f6e2a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index 2ec80f6e..57f1f5a4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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