diff --git a/lib/store/store_view/product_meals_sku.dart b/lib/store/store_view/product_meals_sku.dart index 68890544..adb5991c 100644 --- a/lib/store/store_view/product_meals_sku.dart +++ b/lib/store/store_view/product_meals_sku.dart @@ -742,7 +742,8 @@ class _ProductMealsSku extends State { fontWeight: FontWeight.w600, ), ),), - Padding(padding:EdgeInsets.only(left:8.w,right:8.w), + if(double.tryParse(productInfoList.skuInfoList[0].skuPrice ?? 0) > 0) + Padding(padding:EdgeInsets.only(left:8.w,right:8.w), child:Text.rich( TextSpan( children: [ @@ -755,14 +756,14 @@ class _ProductMealsSku extends State { ), ), TextSpan( - text:(productInfoList.skuInfoList[0].skuPrice ?? "").split(".")[0], + text:(productInfoList.skuInfoList[0].skuPrice ?? "0").split(".")[0], style: TextStyle( fontWeight: FontWeight.bold, fontSize: 18.sp, color: Color(0xFFF65720), ), ), - if((productInfoList.skuInfoList[0].skuPrice??"").contains(".")) + if((productInfoList.skuInfoList[0].skuPrice??"0").contains(".")) TextSpan( text:".", style: TextStyle(