diff --git a/assets/fonts/NotoSansCJK-Regular.ttc b/assets/fonts/NotoSansCJK-Regular.ttc new file mode 100644 index 0000000..a2033d0 Binary files /dev/null and b/assets/fonts/NotoSansCJK-Regular.ttc differ diff --git a/lib/main.dart b/lib/main.dart index 16606ff..08659b2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,9 +1,7 @@ import 'package:tangocard_reader/router.dart'; import 'package:flutter/material.dart'; -void main() { - runApp(const MyApp()); -} +void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @@ -13,6 +11,7 @@ class MyApp extends StatelessWidget { return MaterialApp( title: 'Tangocard Reader', theme: ThemeData( + fontFamily: 'Noto Sans CJK', primarySwatch: Colors.blue, ), initialRoute: '/', diff --git a/pubspec.lock b/pubspec.lock index 6b0c5a7..1a68bf0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -43,13 +43,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.3" fake_async: dependency: transitive description: @@ -95,13 +88,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.7.0" - nested: - dependency: transitive - description: - name: nested - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" path: dependency: transitive description: @@ -109,13 +95,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.8.0" - provider: - dependency: "direct main" - description: - name: provider - url: "https://pub.dartlang.org" - source: hosted - version: "6.0.0" sky_engine: dependency: transitive description: flutter @@ -179,4 +158,3 @@ packages: version: "2.1.1" sdks: dart: ">=2.14.0 <3.0.0" - flutter: ">=1.16.0" diff --git a/pubspec.yaml b/pubspec.yaml index 3ea41ac..2f7a584 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -30,12 +30,6 @@ dependencies: flutter: sdk: flutter - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.2 - provider: ^6.0.0 - dev_dependencies: flutter_test: sdk: flutter @@ -69,10 +63,16 @@ flutter: - family: K Gothic fonts: - asset: assets/fonts/K Gothic.ttf + - family: Heart Warming fonts: - asset: assets/fonts/Heart Warming.otf + - family: Noto Sans CJK + fonts: + - asset: assets/fonts/NotoSansCJK-Regular.ttc + + # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware.