From b488cd09047e6f9c8a858d3a3076177e191366a8 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Fri, 7 Jan 2022 15:07:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shopping/activity_prefecture_details.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/store/shopping/activity_prefecture_details.dart b/lib/store/shopping/activity_prefecture_details.dart index 8c6f6934..899c9b07 100644 --- a/lib/store/shopping/activity_prefecture_details.dart +++ b/lib/store/shopping/activity_prefecture_details.dart @@ -812,22 +812,22 @@ class _ActivityPrefectureDetails extends State { color: Color(0xFFF5F5F5), ), Container( - width: productList.sellCount == null + width: productList.sellCount == 0 ? 0 : (((productList?.sellCount ?? 0) / - (productList?.productStock ?? - 0)) * - 180.w) - .toDouble(), + (productList?.productStock ?? + 0)) * + 180.w) + .toDouble(), height: 8.h, decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.centerLeft, end: Alignment.centerRight, colors: [ - Color(0xFFFDBA56), - Color(0xFFFB2B2B) - ])), + Color(0xFFFDBA56), + Color(0xFFFB2B2B) + ])), ) ], )),