Skip to content

Commit

Permalink
replace DIN font with Bebas font
Browse files Browse the repository at this point in the history
  • Loading branch information
hexintao committed Jan 18, 2022
1 parent 673d7c9 commit 2db0a10
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Binary file added assets/fonts/Bebas-Regular.ttf
Binary file not shown.
Binary file removed assets/fonts/DINCondensed-Bold.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class _NumberItemRowExampleState extends State<NumberItemRowExample> {
textBaseline: TextBaseline.alphabetic,
children: <Widget>[
Container(
height: 26,
height: 30,
transform: Matrix4.translationValues(0, 1, 0),
child: Text('3',
style: TextStyle(
Expand All @@ -183,7 +183,7 @@ class _NumberItemRowExampleState extends State<NumberItemRowExample> {
package: BrnStrings.flutterPackageName,
fontWeight: FontWeight.w600,
fontSize: 28,
fontFamily: 'Condensed',
fontFamily: 'Bebas',
)),
),
Padding(
Expand All @@ -200,7 +200,7 @@ class _NumberItemRowExampleState extends State<NumberItemRowExample> {
),
),
Container(
height: 26,
height: 30,
transform: Matrix4.translationValues(0, 1, 0),
child: Text('1',
style: TextStyle(
Expand All @@ -209,7 +209,7 @@ class _NumberItemRowExampleState extends State<NumberItemRowExample> {
package: BrnStrings.flutterPackageName,
fontWeight: FontWeight.w600,
fontSize: 28,
fontFamily: 'Condensed',
fontFamily: 'Bebas',
)),
),
Padding(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/sample/theme/config_test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TestConfigUtils {

/// 文本字号
///
/// 特殊数据展示,DIN Condensed数字字体,用于强吸引
/// 特殊数据展示,Bebas 数字字体,用于强吸引
fontSizeDIN: 28,

/// 标题字体
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class BrnEnhanceNumberCard extends StatelessWidget {
children: <Widget>[
_getPreWidget(model.preDesc, config),
Container(
height: 26,
height: 30,
transform: Matrix4.translationValues(0, 1, 0),
child: Text(model.number,
style: TextStyle(
Expand All @@ -214,7 +214,7 @@ class BrnEnhanceNumberCard extends StatelessWidget {
package: BrnStrings.flutterPackageName,
fontWeight: config.titleTextStyle.fontWeight,
fontSize: config.titleTextStyle.fontSize,
fontFamily: 'Condensed',
fontFamily: 'Bebas',
)),
),
_getLastWidget(model.lastDesc, config),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/theme/base/brn_default_config_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class BrnDefaultConfigUtils {

/// 文本字号
///
/// 特殊数据展示,DIN Condensed数字字体,用于强吸引
/// 特殊数据展示,Bebas 数字字体,用于强吸引
fontSizeDIN: 28,

/// 标题字体
Expand Down
2 changes: 1 addition & 1 deletion lib/src/theme/configs/brn_common_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class BrnCommonConfig extends BrnBaseConfig {

/// 文本字号
///
/// 特殊数据展示,DIN Condensed数字字体,用于强吸引
/// 特殊数据展示,Bebas 数字字体,用于强吸引
/// default value is 28
double fontSizeDIN;

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ flutter:
# list giving the asset and other descriptors for the font. For
# example:
fonts:
- family: Condensed
- family: Bebas
fonts:
- asset: assets/fonts/DINCondensed-Bold.ttf
- asset: assets/fonts/Bebas-Regular.ttf
# weight: 700
# - family: Trajan Pro
# fonts:
Expand Down

0 comments on commit 2db0a10

Please sign in to comment.