TF-357 Fix avoid loading so many fonts
This commit is contained in:
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';
|
||||
}
|
||||
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user