|
@@ -5,6 +5,7 @@ import 'package:zhiying_base_widget/widgets/hot_ranking/hot_ranking_list/model/h |
|
|
import 'package:zhiying_base_widget/widgets/hot_ranking/hot_ranking_list/model/hot_ranking_list_model.dart'; |
|
|
import 'package:zhiying_base_widget/widgets/hot_ranking/hot_ranking_list/model/hot_ranking_list_model.dart'; |
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
import 'package:cached_network_image/cached_network_image.dart'; |
|
|
import 'package:cached_network_image/cached_network_image.dart'; |
|
|
|
|
|
import 'dart:ui' as ui show ParagraphBuilder, PlaceholderAlignment; |
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
|
|
|
|
|
|
class HotRankingGoods extends StatelessWidget { |
|
|
class HotRankingGoods extends StatelessWidget { |
|
@@ -59,27 +60,27 @@ class HotRankingGoods extends StatelessWidget { |
|
|
children: <Widget>[ |
|
|
children: <Widget>[ |
|
|
Expanded( |
|
|
Expanded( |
|
|
child: RichText( |
|
|
child: RichText( |
|
|
|
|
|
textAlign: TextAlign.start, |
|
|
overflow: TextOverflow.ellipsis, |
|
|
overflow: TextOverflow.ellipsis, |
|
|
maxLines: 2, |
|
|
maxLines: 2, |
|
|
text: TextSpan(children: <InlineSpan>[ |
|
|
text: TextSpan(children: <InlineSpan>[ |
|
|
WidgetSpan( |
|
|
WidgetSpan( |
|
|
|
|
|
alignment: ui.PlaceholderAlignment.middle, |
|
|
child: Container( |
|
|
child: Container( |
|
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
|
left: 4.w, right: 4.w, top: 1, bottom: 1), |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
color: HexColor.fromHex( |
|
|
color: HexColor.fromHex( |
|
|
providers.providerBgColor), |
|
|
providers.providerBgColor), |
|
|
borderRadius: |
|
|
borderRadius: |
|
|
BorderRadius.circular(4)), |
|
|
|
|
|
child: Padding( |
|
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
|
left: 4.w, right: 4.w), |
|
|
|
|
|
child: Text( |
|
|
|
|
|
good.providerName ?? "", |
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
color: HexColor.fromHex( |
|
|
|
|
|
providers.providerNameColor, |
|
|
|
|
|
), |
|
|
|
|
|
fontSize: 18.sp), |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
BorderRadius.circular(2.5)), |
|
|
|
|
|
child: Text( |
|
|
|
|
|
good.providerName ?? "", |
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
color: HexColor.fromHex( |
|
|
|
|
|
providers.providerNameColor, |
|
|
|
|
|
), |
|
|
|
|
|
fontSize: 18.sp), |
|
|
), |
|
|
), |
|
|
)), |
|
|
)), |
|
|
WidgetSpan( |
|
|
WidgetSpan( |
|
@@ -210,9 +211,10 @@ class HotRankingGoods extends StatelessWidget { |
|
|
children: <Widget>[ |
|
|
children: <Widget>[ |
|
|
Expanded( |
|
|
Expanded( |
|
|
child: Container( |
|
|
child: Container( |
|
|
|
|
|
alignment: Alignment.centerLeft, |
|
|
height: 40.w, |
|
|
height: 40.w, |
|
|
padding: EdgeInsets.only( |
|
|
padding: EdgeInsets.only( |
|
|
left: 64.w, |
|
|
|
|
|
|
|
|
left: 40.w, |
|
|
), |
|
|
), |
|
|
margin: |
|
|
margin: |
|
|
EdgeInsets.only(right: 20, left: 20.w), |
|
|
EdgeInsets.only(right: 20, left: 20.w), |
|
|