TF-357 Fix avoid loading so many fonts

This commit is contained in:
dab246
2022-03-30 10:45:35 +07:00
committed by Dat H. Pham
parent 3a38d40469
commit 6ff0cf766d
14 changed files with 7 additions and 15 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,3 @@
class ConstantsUI { class ConstantsUI {
static const fontApp = 'CircularStd'; static const fontApp = 'Inter';
static const fontSFProText = 'SFProText';
} }
+1 -1
View File
@@ -6,7 +6,7 @@ import 'package:flutter/services.dart';
ThemeData appTheme() { ThemeData appTheme() {
return ThemeData( return ThemeData(
scaffoldBackgroundColor: Colors.white, scaffoldBackgroundColor: Colors.white,
fontFamily: ConstantsUI.fontSFProText, fontFamily: ConstantsUI.fontApp,
appBarTheme: appBarTheme(), appBarTheme: appBarTheme(),
textTheme: textTheme(), textTheme: textTheme(),
visualDensity: VisualDensity.adaptivePlatformDensity, visualDensity: VisualDensity.adaptivePlatformDensity,
+5 -12
View File
@@ -191,19 +191,12 @@ flutter:
# For details regarding fonts from package dependencies, # For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages # see https://flutter.dev/custom-fonts/#from-packages
fonts: fonts:
- family: CircularStd - family: Inter
fonts: fonts:
- asset: assets/fonts/CircularStd/CircularStd-Bold.otf - asset: assets/fonts/Inter/Inter-Bold.ttf
weight: 700 weight: 700
- asset: assets/fonts/CircularStd/CircularStd-Medium.otf - asset: assets/fonts/Inter/Inter-SemiBold.ttf
weight: 500
- asset: assets/fonts/CircularStd/CircularStd-Book.otf
- family: SFProText
fonts:
- asset: assets/fonts/SFProText/SF-Pro-Text-Bold.otf
weight: 700
- asset: assets/fonts/SFProText/SF-Pro-Text-Semibold.otf
weight: 600 weight: 600
- asset: assets/fonts/SFProText/SF-Pro-Text-Medium.ttf - asset: assets/fonts/Inter/Inter-Medium.ttf
weight: 500 weight: 500
- asset: assets/fonts/SFProText/SF-Pro-Text-Regular.ttf - asset: assets/fonts/Inter/Inter-Regular.ttf