From 56f0a5b6161c9aca241c3b03efb1325dd0c66ca0 Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Tue, 24 Oct 2023 15:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=EF=BC=8C=E6=9C=AA=E8=AE=BE=E7=BD=AE=E9=80=82=E7=94=A8=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E6=96=B0=E5=A2=9E=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/view_widget/selector_store_dialog.dart | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/view_widget/selector_store_dialog.dart b/lib/view_widget/selector_store_dialog.dart index be5eec08..87fc9cef 100644 --- a/lib/view_widget/selector_store_dialog.dart +++ b/lib/view_widget/selector_store_dialog.dart @@ -8,6 +8,8 @@ import 'package:huixiang/view_widget/border_text.dart'; import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/round_button.dart'; +import 'no_data_view.dart'; + class SelectorStoreWidget extends StatefulWidget { final List stores; @@ -91,7 +93,18 @@ class _SelectorStoreWidget extends State { ? (widget.stores.length > 4 ? 4 : widget.stores.length) : 0) * 60.h, - child: ListView.builder( + child: (widget.stores == null || widget.stores.length == 0) + ? Padding(padding:EdgeInsets.symmetric(horizontal: 16.w), + child: Text( + "该优惠券未设置适用门店,适用情况请查看使用详情", + textAlign: TextAlign.center, + style: TextStyle( + fontWeight: MyFontWeight.regular, + fontSize: 14.sp, + color: Colors.black, + ), + ),) + : ListView.builder( physics: BouncingScrollPhysics(), itemBuilder: (context, position) { return GestureDetector(