Browse Source

优惠券使用,未设置适用门店新增说明

dev
wurong 1 year ago
parent
commit
56f0a5b616
  1. 15
      lib/view_widget/selector_store_dialog.dart

15
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<Store> stores;
@ -91,7 +93,18 @@ class _SelectorStoreWidget extends State<SelectorStoreWidget> {
? (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(

Loading…
Cancel
Save