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 {
|
class ConstantsUI {
|
||||||
static const fontApp = 'CircularStd';
|
static const fontApp = 'Inter';
|
||||||
static const fontSFProText = 'SFProText';
|
|
||||||
}
|
}
|
||||||
@@ -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
@@ -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
|
||||||
Reference in New Issue
Block a user