|
|
|
@ -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( |
|
|
|
|