|
|
@@ -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_comm/zhiying_comm.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'; |
|
|
|
|
|
|
|
class HotRankingGoods extends StatelessWidget { |
|
|
@@ -59,27 +60,27 @@ class HotRankingGoods extends StatelessWidget { |
|
|
|
children: <Widget>[ |
|
|
|
Expanded( |
|
|
|
child: RichText( |
|
|
|
textAlign: TextAlign.start, |
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
maxLines: 2, |
|
|
|
text: TextSpan(children: <InlineSpan>[ |
|
|
|
WidgetSpan( |
|
|
|
alignment: ui.PlaceholderAlignment.middle, |
|
|
|
child: Container( |
|
|
|
padding: EdgeInsets.only( |
|
|
|
left: 4.w, right: 4.w, top: 1, bottom: 1), |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: HexColor.fromHex( |
|
|
|
providers.providerBgColor), |
|
|
|
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( |
|
|
@@ -210,9 +211,10 @@ class HotRankingGoods extends StatelessWidget { |
|
|
|
children: <Widget>[ |
|
|
|
Expanded( |
|
|
|
child: Container( |
|
|
|
alignment: Alignment.centerLeft, |
|
|
|
height: 40.w, |
|
|
|
padding: EdgeInsets.only( |
|
|
|
left: 64.w, |
|
|
|
left: 40.w, |
|
|
|
), |
|
|
|
margin: |
|
|
|
EdgeInsets.only(right: 20, left: 20.w), |
|
|
|