Quellcode durchsuchen

1、把字体移到comm库中

tags/0.0.2+14
PH2 vor 4 Jahren
Ursprung
Commit
7faec20596
26 geänderte Dateien mit 84 neuen und 66 gelöschten Zeilen
  1. BIN
     
  2. BIN
     
  3. BIN
     
  4. +3
    -0
      lib/pages/search_result_page/item/search_result_item_page.dart
  5. +1
    -1
      lib/pages/withdraw_page/withdraw_page.dart
  6. +3
    -3
      lib/template/goods_share_template/goods_share_template.dart
  7. +1
    -1
      lib/widgets/goods_details/coupon/counpon_widget.dart
  8. +2
    -2
      lib/widgets/goods_details/footer/goods_details_footer_widget.dart
  9. +3
    -3
      lib/widgets/goods_details/price/goods_details_price_widget.dart
  10. +3
    -3
      lib/widgets/home/home_goods/home_goods_item.dart
  11. +3
    -3
      lib/widgets/home/home_goods/home_goods_item_single.dart
  12. +5
    -5
      lib/widgets/hot_ranking/hot_ranking_goods/hot_ranking_goods.dart
  13. +3
    -3
      lib/widgets/mine/mine_data/mine_data_widget.dart
  14. +1
    -1
      lib/widgets/mine/mine_header/mine_header_container.dart
  15. +31
    -5
      lib/widgets/search/tabbar/model/search_tab_model.dart
  16. +3
    -3
      lib/widgets/search/tabbar/search_tab_widget.dart
  17. +2
    -2
      lib/widgets/team/data/team_data_widet.dart
  18. +4
    -4
      lib/widgets/team/fans_list/team_fans_item.dart
  19. +2
    -2
      lib/widgets/team/fans_list/team_fans_number_item.dart
  20. +3
    -3
      lib/widgets/team/recommend/team_recommend_widget.dart
  21. +1
    -1
      lib/widgets/team_details/month_data/team_details_month_data_widget.dart
  22. +4
    -4
      lib/widgets/team_details/referrer/team_details_referrer_widget.dart
  23. +2
    -2
      lib/widgets/wallet/wallet_data/wallet_data.dart
  24. +3
    -3
      lib/widgets/wallet/wallet_detail/wallet_detail.dart
  25. +1
    -1
      lib/widgets/wallet_bil_detail/wallet_bil_detail.dart
  26. +0
    -11
      pubspec.yaml



+ 3
- 0
lib/pages/search_result_page/item/search_result_item_page.dart Datei anzeigen

@@ -3,6 +3,8 @@ import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:zhiying_base_widget/pages/search_result_page/item/bloc/search_result_item_bloc.dart';
import 'package:zhiying_base_widget/pages/search_result_page/item/bloc/search_result_item_repository.dart';
import 'package:zhiying_base_widget/widgets/home/home_goods/skeleton/home_goods_sk.dart';
import 'package:zhiying_base_widget/widgets/refresh/refresh_header/refresh_gif_header.dart';
import 'package:zhiying_base_widget/widgets/refresh/refresh_header/refresh_header.dart';
import 'package:zhiying_base_widget/widgets/search_result/goods_list/bloc/search_result_goods_list_bloc.dart';
import 'package:zhiying_base_widget/widgets/search_result/goods_list/bloc/search_result_goods_list_repository.dart';
import 'package:zhiying_comm/zhiying_comm.dart';
@@ -142,6 +144,7 @@ class _SearchResultItemPageContianerState extends State<SearchResultItemPageCont
enablePullUp: true,
// footer: ClassicFooter(),
// header: MaterialClassicHeader(),
// header: RefreshGifHeader(),
controller: _refreshController,
child: CustomScrollView(
controller: _controller,


+ 1
- 1
lib/pages/withdraw_page/withdraw_page.dart Datei anzeigen

@@ -332,7 +332,7 @@ class _WithdrawContainerState extends State<_WithdrawContainer> {
fontSize: 30,
color: Color(0xff333333),
fontFamily: 'Din-Bold',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
decoration: BoxDecoration(color: Colors.transparent),
keyboardType: TextInputType.numberWithOptions(decimal: true),


+ 3
- 3
lib/template/goods_share_template/goods_share_template.dart Datei anzeigen

@@ -248,7 +248,7 @@ class GoodsShareTemplate extends StatelessWidget {
color: HexColor.fromHex('#b3b3b3'),
fontWeight: FontWeight.normal,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
decoration: TextDecoration.lineThrough,
),
));
@@ -266,7 +266,7 @@ class GoodsShareTemplate extends StatelessWidget {
color: HexColor.fromHex('#ff4242'),
fontWeight: FontWeight.bold,
fontFamily: 'Din-Bold',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
),
TextSpan(
@@ -276,7 +276,7 @@ class GoodsShareTemplate extends StatelessWidget {
color: HexColor.fromHex('#ff4242'),
fontWeight: FontWeight.bold,
fontFamily: 'Din-Bold',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
)
]),


+ 1
- 1
lib/widgets/goods_details/coupon/counpon_widget.dart Datei anzeigen

@@ -129,7 +129,7 @@ class _CounponWidgetContainerState extends State<CounponWidgetContainer> {

/// 价格
Text(model?.coupon_price ?? '100',
style: TextStyle(fontSize: 30, color: HexColor.fromHex(model?.coupon_price_color ?? '#FFFFFF'), fontFamily: 'Din', package: 'zhiying_base_widget')),
style: TextStyle(fontSize: 30, color: HexColor.fromHex(model?.coupon_price_color ?? '#FFFFFF'), fontFamily: 'Din', package: 'zhiying_comm')),
],
);
}


+ 2
- 2
lib/widgets/goods_details/footer/goods_details_footer_widget.dart Datei anzeigen

@@ -218,7 +218,7 @@ class _GoodsDetailsFooterContainerState extends State<_GoodsDetailsFooterContain
TextSpan(
text: model?.share_value ?? '0.0',
style: TextStyle(
fontSize: 15, fontWeight: FontWeight.bold, color: HexColor.fromHex(model?.share_earn_color ?? '#FFFFFF'), fontFamily: 'Din', package: 'zhiying_base_widget')),
fontSize: 15, fontWeight: FontWeight.bold, color: HexColor.fromHex(model?.share_earn_color ?? '#FFFFFF'), fontFamily: 'Din', package: 'zhiying_comm')),
]),
),
Text(
@@ -260,7 +260,7 @@ class _GoodsDetailsFooterContainerState extends State<_GoodsDetailsFooterContain
fontWeight: FontWeight.bold,
color: HexColor.fromHex(model?.save_earn_val_color ?? '#FFFFFF'),
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
)),
]),
),


+ 3
- 3
lib/widgets/goods_details/price/goods_details_price_widget.dart Datei anzeigen

@@ -68,7 +68,7 @@ class GoodsDetailsPriceWidget extends StatelessWidget {
return Row(
children: <Widget>[
Text(model?.symbol ?? '¥ ', style: TextStyle(color: HexColor.fromHex( model?.price_color ??'#FF4242'), fontSize: 15)),
Text(model?.current_price ?? '0', style: TextStyle(color: HexColor.fromHex(model?.price_color ?? '#FF4242'), fontSize: 30, fontFamily: 'Din', package: 'zhiying_base_widget', fontWeight: FontWeight.bold)),
Text(model?.current_price ?? '0', style: TextStyle(color: HexColor.fromHex(model?.price_color ?? '#FF4242'), fontSize: 30, fontFamily: 'Din', package: 'zhiying_comm', fontWeight: FontWeight.bold)),
],
);
}
@@ -78,7 +78,7 @@ class GoodsDetailsPriceWidget extends StatelessWidget {
return Container(
decoration: BoxDecoration(color: HexColor.fromHex(model?.points_bg_color ?? '#FFEFDA'), borderRadius: BorderRadius.circular(5)),
padding: const EdgeInsets.only(left: 4, right: 7.5, top: 4, bottom: 4),
child: Text(model?.point ?? '+ 0.00 积分', style: TextStyle(color: HexColor.fromHex( model?.points_color ?? '#B78107'), fontSize: 9, fontFamily: 'Din', package: 'zhiying_base_widget')),
child: Text(model?.point ?? '+ 0.00 积分', style: TextStyle(color: HexColor.fromHex( model?.points_color ?? '#B78107'), fontSize: 9, fontFamily: 'Din', package: 'zhiying_comm')),
);
}

@@ -87,7 +87,7 @@ class GoodsDetailsPriceWidget extends StatelessWidget {
return Column(
children: <Widget>[
Text( model?.is_coupon == '1' ? model?.ticket ?? '券后' : model?.hand_price_text ?? '到手价', style: TextStyle(color: HexColor.fromHex(model?.ticket_color ?? '#FF4242'), fontSize: 11)),
Text('${model?.symbol}${model?.market_price}' ?? '¥ 0', style: TextStyle(color: HexColor.fromHex(model?.ticket_price_color ?? '#FF4242'), fontSize: 10, fontFamily: 'Din', package: 'zhiying_base_widget', decoration: TextDecoration.lineThrough)),
Text('${model?.symbol}${model?.market_price}' ?? '¥ 0', style: TextStyle(color: HexColor.fromHex(model?.ticket_price_color ?? '#FF4242'), fontSize: 10, fontFamily: 'Din', package: 'zhiying_comm', decoration: TextDecoration.lineThrough)),
],
);
}


+ 3
- 3
lib/widgets/home/home_goods/home_goods_item.dart Datei anzeigen

@@ -306,7 +306,7 @@ class HomeGoodsItem extends StatelessWidget {
color: HexColor.fromHex(style?.listStyle?.currentPriceColor),
fontWeight: FontWeight.bold,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
),
TextSpan(
@@ -316,7 +316,7 @@ class HomeGoodsItem extends StatelessWidget {
color: HexColor.fromHex(style?.listStyle?.currentPriceColor),
fontWeight: FontWeight.bold,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
)
]),
@@ -334,7 +334,7 @@ class HomeGoodsItem extends StatelessWidget {
color: HexColor.fromHex(style?.listStyle?.marketPriceColor),
fontWeight: FontWeight.normal,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
decoration: TextDecoration.lineThrough,
),
));


+ 3
- 3
lib/widgets/home/home_goods/home_goods_item_single.dart Datei anzeigen

@@ -326,7 +326,7 @@ class HomeGoodsItemSingle extends StatelessWidget {
color: HexColor.fromHex(style?.listStyle?.currentPriceColor),
fontWeight: FontWeight.bold,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
),
TextSpan(
@@ -336,7 +336,7 @@ class HomeGoodsItemSingle extends StatelessWidget {
color: HexColor.fromHex(style?.listStyle?.currentPriceColor),
fontWeight: FontWeight.bold,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
)
]),
@@ -354,7 +354,7 @@ class HomeGoodsItemSingle extends StatelessWidget {
color: HexColor.fromHex(style?.listStyle?.marketPriceColor),
fontWeight: FontWeight.normal,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
decoration: TextDecoration.lineThrough,
),
));


+ 5
- 5
lib/widgets/hot_ranking/hot_ranking_goods/hot_ranking_goods.dart Datei anzeigen

@@ -130,7 +130,7 @@ class HotRankingGoods extends StatelessWidget {
.couponFontColor),
fontSize: 11,
fontFamily: 'Din',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
),
),
@@ -165,7 +165,7 @@ class HotRankingGoods extends StatelessWidget {
.commissionFontColor),
fontSize: 11,
fontFamily: 'Din',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
),
),
@@ -196,7 +196,7 @@ class HotRankingGoods extends StatelessWidget {
fontSize: 20,
fontWeight: FontWeight.bold,
fontFamily: 'Din',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
SizedBox(
width: 6,
@@ -211,7 +211,7 @@ class HotRankingGoods extends StatelessWidget {
fontSize: 11,
decoration: TextDecoration.lineThrough,
fontFamily: 'Din',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
),
],
@@ -244,7 +244,7 @@ class HotRankingGoods extends StatelessWidget {
color: Colors.white,
fontSize: 11,
fontFamily: 'Din',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
))
],


+ 3
- 3
lib/widgets/mine/mine_data/mine_data_widget.dart Datei anzeigen

@@ -93,7 +93,7 @@ class MineDataWidget extends StatelessWidget {
''
''
'',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
),
],
@@ -228,7 +228,7 @@ class MineDataWidget extends StatelessWidget {
fontSize: 18,
color: HexColor.fromHex(_style.gridViewValueColor),
fontFamily: 'Din-Bold',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
),
],
@@ -260,7 +260,7 @@ class MineDataWidget extends StatelessWidget {
fontSize: 12,
color: HexColor.fromHex(_style.gridViewValueColor),
fontFamily: 'Din-Bold',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
),
],


+ 1
- 1
lib/widgets/mine/mine_header/mine_header_container.dart Datei anzeigen

@@ -134,7 +134,7 @@ class _MineHeaderContainerState extends State<MineHeaderContainer> {
color: HexColor.fromHex(
widget.staticModel.userNameColor),
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
),
Container(


+ 31
- 5
lib/widgets/search/tabbar/model/search_tab_model.dart Datei anzeigen

@@ -1,16 +1,42 @@
class SearchTabModel {
String isShow;
String modName;
String nameColor;
String lineSelectColor;
String nameSelectColor;

List<SearchTabItemModel> search_icon_list;

SearchTabModel({this.search_icon_list});
SearchTabModel({
this.isShow,
this.modName,
this.nameColor,
this.lineSelectColor,
this.nameSelectColor,
this.search_icon_list,
});

factory SearchTabModel.fromJson(Map<String, dynamic> json) {
return SearchTabModel(
search_icon_list: json['search_icon_list'] != null ? (json['search_icon_list'] as List).map((i) => SearchTabItemModel.fromJson(i)).toList() : null,
);
SearchTabModel.fromJson(Map<String, dynamic> json) {
isShow = json['is_show'];
modName = json['mod_name'];
nameColor = json['name_color'];
lineSelectColor = json['line_select_color'];
nameSelectColor = json['name_select_color'];
if (json['search_icon_list'] != null) {
search_icon_list = new List<SearchTabItemModel>();
json['search_icon_list'].forEach((v) {
search_icon_list.add(new SearchTabItemModel.fromJson(v));
});
}
}

Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['is_show'] = this.isShow;
data['mod_name'] = this.modName;
data['name_color'] = this.nameColor;
data['line_select_color'] = this.lineSelectColor;
data['name_select_color'] = this.nameSelectColor;
if (this.search_icon_list != null) {
data['search_icon_list'] = this.search_icon_list.map((v) => v.toJson()).toList();
}


+ 3
- 3
lib/widgets/search/tabbar/search_tab_widget.dart Datei anzeigen

@@ -102,8 +102,8 @@ class _SearchTabWidgetState extends State<SearchTabWidget> {
controller: _tabController,
isScrollable: true,
labelStyle: TextStyle( fontSize: 14, fontWeight: FontWeight.bold),
unselectedLabelColor: HexColor.fromHex('#999999'),
labelColor: HexColor.fromHex('#FF4242'),
unselectedLabelColor: HexColor.fromHex( model?.nameColor ?? '#999999'),
labelColor: HexColor.fromHex(model?.nameSelectColor ?? '#FF4242'),
// indicatorSize: TabBarIndicatorSize.label,
indicator: MaterialIndicator(
height: 2.5,
@@ -111,7 +111,7 @@ class _SearchTabWidgetState extends State<SearchTabWidget> {
topRightRadius: 8,
bottomLeftRadius: 8,
bottomRightRadius: 8,
color: HexColor.fromHex('#FF4242'),
color: HexColor.fromHex(model?.lineSelectColor ?? '#FF4242'),
horizontalPadding: 25,
),
tabs: model.search_icon_list.map((item) {


+ 2
- 2
lib/widgets/team/data/team_data_widet.dart Datei anzeigen

@@ -148,7 +148,7 @@ class TeamDataWidget extends StatelessWidget {
children: <Widget>[
/// nummber\
Text(number,
style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_base_widget')),
style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_comm')),

/// icon
Visibility(
@@ -163,7 +163,7 @@ class TeamDataWidget extends StatelessWidget {
// children: [
// TextSpan(
// text: number,
// style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_base_widget'),
// style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_comm'),
// ),
// WidgetSpan(
// alignment: ui.PlaceholderAlignment.top,


+ 4
- 4
lib/widgets/team/fans_list/team_fans_item.dart Datei anzeigen

@@ -151,7 +151,7 @@ class _TeamFansItemState extends State<TeamFansItem> {
TextSpan(
text: widget?.dataModel?.blurMobile ?? '',
style: TextStyle(
color: HexColor.fromHex(widget?.styleModel?.phoneColor ?? '#333333'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_base_widget')),
color: HexColor.fromHex(widget?.styleModel?.phoneColor ?? '#333333'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_comm')),

/// 复制按钮
WidgetSpan(
@@ -204,7 +204,7 @@ class _TeamFansItemState extends State<TeamFansItem> {
fontWeight: FontWeight.bold,
fontSize: 11,
fontFamily: 'Din',
package: 'zhiying_base_widget')),
package: 'zhiying_comm')),

/// 复制安妮
WidgetSpan(
@@ -238,7 +238,7 @@ class _TeamFansItemState extends State<TeamFansItem> {
color: HexColor.fromHex(widget?.styleModel?.infoBarLastLoginValueColor ?? '#909090'),
fontSize: 11,
fontFamily: 'Din',
package: 'zhiying_base_widget')),
package: 'zhiying_comm')),
]),
)
],
@@ -370,7 +370,7 @@ class _TeamFansItemState extends State<TeamFansItem> {
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
/// Number
Text(number, style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_base_widget')),
Text(number, style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_comm')),

/// Text
Text(text, style: TextStyle(color: HexColor.fromHex(textColor), fontSize: textSize)),


+ 2
- 2
lib/widgets/team/fans_list/team_fans_number_item.dart Datei anzeigen

@@ -27,7 +27,7 @@ class TeamFansNumberItemWidget extends StatelessWidget {
fontSize: 18,
color: HexColor.fromHex(styleModel?.teamViewItemTitleList[0]?.valueColor ?? '#FF4242'),
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
fontWeight: FontWeight.bold),
),
TextSpan(
@@ -43,7 +43,7 @@ class TeamFansNumberItemWidget extends StatelessWidget {
fontSize: 18,
color: HexColor.fromHex(styleModel?.teamViewItemTitleList[1]?.valueColor ?? '#FF4242'),
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
fontWeight: FontWeight.bold)),
TextSpan(
text: styleModel?.teamViewItemTitleList[1]?.unitText ?? '人',


+ 3
- 3
lib/widgets/team/recommend/team_recommend_widget.dart Datei anzeigen

@@ -316,7 +316,7 @@ class __TeamRecommendWidgetState extends State<_TeamRecommendWidgetContainer> {
style: TextStyle(fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerInvitecodeColor ?? '#909090'))),
Text(dataModel?.referrer_invite_code ?? '',
style: TextStyle(
fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerInvitecodeColor ?? '#909090'), fontFamily: 'Din', package: 'zhiying_base_widget')),
fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerInvitecodeColor ?? '#909090'), fontFamily: 'Din', package: 'zhiying_comm')),
],
);
}
@@ -328,7 +328,7 @@ class __TeamRecommendWidgetState extends State<_TeamRecommendWidgetContainer> {
Text(widget?.styleModel?.headerReferrerPhoneText ?? '手机号:',
style: TextStyle(fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerPhoneColor ?? '#AFAFAF'))),
Text(dataModel?.referrer_phone ?? '',
style: TextStyle(fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerPhoneColor ?? '#AFAFAF'), fontFamily: 'Din', package: 'zhiying_base_widget')),
style: TextStyle(fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerPhoneColor ?? '#AFAFAF'), fontFamily: 'Din', package: 'zhiying_comm')),
const SizedBox(width: 6),

/// 拷贝按钮
@@ -343,7 +343,7 @@ class __TeamRecommendWidgetState extends State<_TeamRecommendWidgetContainer> {
children: <Widget>[
Text(widget?.styleModel?.headerReferrerWxText ?? '微信号:', style: TextStyle(fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerWxColor ?? '#AFAFAF'))),
Text(dataModel?.referrer_wechat ?? '',
style: TextStyle(fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerWxColor ?? '#AFAFAF'), fontFamily: 'Din', package: 'zhiying_base_widget')),
style: TextStyle(fontSize: 11, color: HexColor.fromHex(widget?.styleModel?.headerReferrerWxColor ?? '#AFAFAF'), fontFamily: 'Din', package: 'zhiying_comm')),
const SizedBox(width: 6),

/// 拷贝按钮


+ 1
- 1
lib/widgets/team_details/month_data/team_details_month_data_widget.dart Datei anzeigen

@@ -94,7 +94,7 @@ class TeamDetailsMonthDataWidget extends StatelessWidget {
/// number
Text(
number,
style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_base_widget'),
style: TextStyle(color: HexColor.fromHex(numberColor), fontSize: numberSize, fontWeight: FontWeight.bold, fontFamily: 'Din', package: 'zhiying_comm'),
),

/// text


+ 4
- 4
lib/widgets/team_details/referrer/team_details_referrer_widget.dart Datei anzeigen

@@ -142,7 +142,7 @@ class TeamDetailsReferrerWidget extends StatelessWidget {
TextSpan(text: styleModel?.phone_text ?? '手机号:', style: TextStyle(color: HexColor.fromHex(styleModel?.phone_color ?? '#333333'), fontSize: 11)),
TextSpan(
text: dataModel?.blurMobile ?? '',
style: TextStyle(color: HexColor.fromHex(styleModel?.phone_color ?? '#333333'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_base_widget')),
style: TextStyle(color: HexColor.fromHex(styleModel?.phone_color ?? '#333333'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_comm')),

/// 复制按钮
_getCopyWidget(dataModel?.phone),
@@ -196,7 +196,7 @@ class TeamDetailsReferrerWidget extends StatelessWidget {
color: HexColor.fromHex(styleModel?.wx_value_color ?? '#333333'),
fontSize: 11,
fontFamily: 'Din',
package: 'zhiying_base_widget')),
package: 'zhiying_comm')),
_getCopyWidget(dataModel?.wechat),
]),
),
@@ -207,10 +207,10 @@ class TeamDetailsReferrerWidget extends StatelessWidget {
text: TextSpan(children: [
TextSpan(
text: styleModel?.last_login_text ?? '最近登陆',
style: TextStyle(color: HexColor.fromHex(styleModel?.last_login_text_color ?? '#909090'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_base_widget')),
style: TextStyle(color: HexColor.fromHex(styleModel?.last_login_text_color ?? '#909090'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_comm')),
TextSpan(
text: dataModel?.lastLogin ?? '',
style: TextStyle(color: HexColor.fromHex(styleModel?.last_login_value_color ?? '#909090'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_base_widget')),
style: TextStyle(color: HexColor.fromHex(styleModel?.last_login_value_color ?? '#909090'), fontSize: 11, fontFamily: 'Din', package: 'zhiying_comm')),
]),
),
],


+ 2
- 2
lib/widgets/wallet/wallet_data/wallet_data.dart Datei anzeigen

@@ -112,7 +112,7 @@ class _WalletDataState extends State<WalletData> {
color: HexColor.fromHex(
model.headerCashOutTextColor),
fontFamily: 'Din-Bold',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
),
),
],
@@ -178,7 +178,7 @@ class _WalletDataState extends State<WalletData> {
color: HexColor.fromHex(item.valueColor),
fontSize: 15,
fontFamily: 'Din-Bold',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
),
Text(
item.text,


+ 3
- 3
lib/widgets/wallet/wallet_detail/wallet_detail.dart Datei anzeigen

@@ -180,7 +180,7 @@ class _WalletDetailState extends State<WalletDetail>
color: Colors.red,
fontSize: 20,
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
fontWeight: FontWeight.bold),
)
],
@@ -332,7 +332,7 @@ class _WalletDetailState extends State<WalletDetail>
Text(dataMap[item.itemList[0].vauleKey],
style: TextStyle(
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
fontWeight: FontWeight.bold,
fontSize: 17,
color:
@@ -390,7 +390,7 @@ class _WalletDetailState extends State<WalletDetail>
fontSize: 17,
color: HexColor.fromHex(item.itemList[1].valueColor),
fontFamily: 'Din',
package: 'zhiying_base_widget',
package: 'zhiying_comm',
fontWeight: FontWeight.bold),
)
],


+ 1
- 1
lib/widgets/wallet_bil_detail/wallet_bil_detail.dart Datei anzeigen

@@ -299,7 +299,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
color: HexColor.fromHex(inputItemStyle.amountColor),
fontSize: 15,
fontFamily: 'Din',
package: 'zhiying_base_widget'),
package: 'zhiying_comm'),
)
],
)


+ 0
- 11
pubspec.yaml Datei anzeigen

@@ -81,17 +81,6 @@ flutter:
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
fonts:
- family: Din-Bold
fonts:
- asset: assets/fonts/DIN-Bold.otf
- family: Din-Medium
fonts:
- asset: assets/fonts/DIN-Medium.otf
- family: Din
fonts:
- asset: assets/fonts/DIN-Regular.otf

#
# For details regarding fonts in packages, see
# https://flutter.dev/custom-fonts/#from-packages

Laden…
Abbrechen
Speichern