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 {
static const fontApp = 'CircularStd';
static const fontSFProText = 'SFProText';
static const fontApp = 'Inter';
}
+1 -1
View File
@@ -6,7 +6,7 @@ import 'package:flutter/services.dart';
ThemeData appTheme() {
return ThemeData(
scaffoldBackgroundColor: Colors.white,
fontFamily: ConstantsUI.fontSFProText,
fontFamily: ConstantsUI.fontApp,
appBarTheme: appBarTheme(),
textTheme: textTheme(),
visualDensity: VisualDensity.adaptivePlatformDensity,
+5 -12
View File
@@ -191,19 +191,12 @@ flutter:
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
fonts:
- family: CircularStd
- family: Inter
fonts:
- asset: assets/fonts/CircularStd/CircularStd-Bold.otf
- asset: assets/fonts/Inter/Inter-Bold.ttf
weight: 700
- asset: assets/fonts/CircularStd/CircularStd-Medium.otf
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
- asset: assets/fonts/Inter/Inter-SemiBold.ttf
weight: 600
- asset: assets/fonts/SFProText/SF-Pro-Text-Medium.ttf
- asset: assets/fonts/Inter/Inter-Medium.ttf
weight: 500
- asset: assets/fonts/SFProText/SF-Pro-Text-Regular.ttf
- asset: assets/fonts/Inter/Inter-Regular.ttf