商城订单详情优化

pull/1/head
张萌 3 years ago
parent 4c3ea317c3
commit a9822f6833

@ -25,6 +25,7 @@ import 'package:aku_new_community/ui/community/facility/facility_appointment_pag
import 'package:aku_new_community/ui/function_and_service/task/task_page.dart';
import 'package:aku_new_community/ui/function_and_service/work_order/work_order_page.dart';
import 'package:aku_new_community/ui/home/application/all_application.dart';
import 'package:aku_new_community/ui/home/application/all_application_new.dart';
import 'package:aku_new_community/ui/manager/advice/advice_page.dart';
import 'package:aku_new_community/ui/manager/questionnaire/questionnaire_page.dart';
import 'package:aku_new_community/ui/profile/car/car_manage_page.dart';
@ -123,7 +124,8 @@ List<AO> appObjects = [
AO('共享停车', Assets.icons.sharePark.path, null),
AO('二手市场', Assets.icons.secondHandMarket.path, null),
AO('共享投屏', Assets.icons.projectionScreen.path, null),
AO('全部应用', Assets.home.icQbyy.path, () => Get.to(() => AllApplicationPage())),
AO('全部应用', Assets.home.icQbyy.path,
() => Get.to(() => AllApplicationNewPage())),
// AO(
// '小区教育',

File diff suppressed because it is too large Load Diff

@ -1,6 +1,5 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/ui/market/shop_car/shop_car_func.dart';
import 'package:json_annotation/json_annotation.dart';
part 'shop_car_list_model.g.dart';
@ -18,7 +17,7 @@ class ShopCarListModel {
final double? sellPrice;
final double? discountPrice;
// (1.0.)
final int stockStatus;
final int? stockStatus;
final String? unit;
// 0= 1= 2= ,

@ -15,7 +15,7 @@ ShopCarListModel _$ShopCarListModelFromJson(Map<String, dynamic> json) =>
shopStatus: json['shopStatus'] as int?,
sellPrice: (json['sellPrice'] as num?)?.toDouble(),
discountPrice: (json['discountPrice'] as num?)?.toDouble(),
stockStatus: json['stockStatus'] as int,
stockStatus: json['stockStatus'] as int?,
unit: json['unit'] as String?,
kind: json['kind'] as int?,
weight: (json['weight'] as num?)?.toDouble(),

@ -63,14 +63,12 @@ class _MyAddressItemState extends State<MyAddressItem> {
children: [
GestureDetector(
onTap: () async {
bool? result = await Userfunc.setIsDefaultAddress(
bool result = await Userfunc.setIsDefaultAddress(
widget.addressModel.id!);
if (result != null) {
if (result) {
await appProvider.getMyAddress();
widget.refreshController!.callRefresh();
}
}
},
child: Container(
child: widget.addressModel.isDefault == 1

@ -302,29 +302,34 @@ class AppProvider extends ChangeNotifier {
List<AddressModel> get addressModels => _addressModels;
AddressModel? _addressModel;
///
AddressModel? _defaultAddressModel;
AddressModel? get addressModel => _addressModel;
///
AddressModel? get defaultAddressModel => _defaultAddressModel;
///
Future getMyAddress() async {
BaseModel model = await NetUtil().get(SAASAPI.market.address.myAddress);
if (model.data?.length == 0)
return [];
else {
if ((model.data as List).length == 0) {
_addressModels.clear();
_defaultAddressModel=null;
notifyListeners();
return ;
} else {
_addressModels =
(model.data as List).map((e) => AddressModel.fromJson(e)).toList();
if (_addressModels.isEmpty) {
_addressModel = null;
_defaultAddressModel = null;
} else {
_addressModels.forEach((element) {
for (var element in _addressModels) {
if (element.isDefault == 1) {
_addressModel = element;
_defaultAddressModel = element;
notifyListeners();
return;
}
});
}
_defaultAddressModel = null;
}
}
notifyListeners();

@ -0,0 +1,114 @@
import 'package:aku_new_community/extensions/num_ext.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/utils/application_utils.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/src/extensions/iterable_ext.dart';
import 'package:velocity_x/src/extensions/string_ext.dart';
class AllApplicationNewPage extends StatefulWidget {
const AllApplicationNewPage({Key? key}) : super(key: key);
@override
_AllApplicationNewPageState createState() => _AllApplicationNewPageState();
}
class _AllApplicationNewPageState extends State<AllApplicationNewPage> {
List<String> rootTypes = ['物业服务', '出行安全', '居民生活', '关于社区', '智慧服务', '附近市场'];
List<String> getApplications(int index) {
switch (index) {
case 0:
return ['报事报修', '设施预约', '生活缴费', '装修管理'];
case 1:
return [
'开门码',
'物品出门',
'地理信息',
'小蜜蜂任务',
];
case 2:
return ['便民电话', '问卷调查', '活动投票', '快递包裹', '投诉表扬', '业委会', '社区介绍', '借还管理'];
case 3:
return ['服务浏览', '周边企业', '住房说明', '电子商务'];
case 4:
return ['智慧养老', '任务发布', '周边服务', '共享投屏'];
case 5:
return ['自营商城', '邻家宠物', '共享停车', '二手市场'];
default:
return [];
}
}
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '全部应用',
body: ListView(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 32.w),
children: rootTypes
.mapIndexed((e, index) => _applicationTile(index))
.toList()
.sepWidget(separate: 16.hb),
));
}
Container _applicationTile(int index) {
return Container(
width: 686.w,
padding: EdgeInsets.symmetric(
vertical: 32.w,
),
decoration: BoxDecoration(
color: Colors.white, borderRadius: BorderRadius.circular(16.w)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: EdgeInsets.only(left: 32.w, bottom: 24.w),
child: rootTypes[index]
.text
.size(32.sp)
.color(Color(0xFF2B2B2B))
.bold
.make(),
),
ConstrainedBox(
constraints: BoxConstraints(
maxHeight: getApplications(index).length ~/ 4 * 140.w +
((getApplications(index).length - 4) ~/ 4 * 30.w)),
child: GridView.count(
shrinkWrap: true,
crossAxisCount: 4,
physics: NeverScrollableScrollPhysics(),
children: ApplicationUtil(getApplications(index))
.elements
.map((e) => applicationItem(e))
.toList(),
),
),
],
),
);
}
Widget applicationItem(AppElement appElement) {
return GestureDetector(
onTap: appElement.onTap,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
appElement.imgPath,
width: 96.w,
height: 96.w,
),
8.hb,
appElement.title.text.size(24.sp).color(Color(0xFF333333)).make(),
],
),
);
}
}

@ -6,7 +6,6 @@ import 'package:aku_new_community/model/user/adress_model.dart';
import 'package:aku_new_community/models/market/good_detail_model.dart';
import 'package:aku_new_community/pages/personal/address/address_list_page.dart';
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/ui/market/collection/collection_func.dart';
import 'package:aku_new_community/ui/market/search/search_func.dart';
import 'package:aku_new_community/ui/market/search/submit_order_page_normal.dart';
import 'package:aku_new_community/ui/market/shop_car/shop_car_page.dart';
@ -69,9 +68,15 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
Timer? _timer;
String get receiveAddress {
final appProvider = Provider.of<AppProvider>(Get.context!);
if (_addressModel == null) {
return (_goodDetail!.defaultLocation ?? '') +
(_goodDetail!.defaultAddressDetail ?? '');
print(appProvider.defaultAddressModel?.locationName);
if (appProvider.defaultAddressModel == null) {
return '选择收货地址';
} else {
return (appProvider.defaultAddressModel!.locationName ?? '') +
(appProvider.defaultAddressModel!.addressDetail ?? '');
}
} else {
return (_addressModel!.locationName ?? '') +
(_addressModel!.addressDetail ?? '');
@ -80,16 +85,15 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
@override
void initState() {
final appProvider = Provider.of<AppProvider>(Get.context!);
super.initState();
_pageController = PageController();
_sliverListController = ScrollController();
_refreshController = EasyRefreshController();
if (appProvider.addressModel != null) {
_addressModel = appProvider.addressModel!;
} else {
_addressModel = null;
}
// if (appProvider.defaultAddressModel != null) {
// _addressModel = appProvider.defaultAddressModel!;
// } else {
// _addressModel = null;
// }
if (widget.integralGood) {
_timer = Timer.periodic(Duration(seconds: 1), (timer) {
setState(() {});
@ -413,10 +417,7 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
Container(
width: 430.w,
child: Text(
_addressModel == null
? '请先选择地址'
: (_addressModel!.locationName ?? '') +
(_addressModel!.addressDetail ?? ''),
receiveAddress,
style:
TextStyle(fontSize: 24.sp, color: ktextPrimary),
maxLines: 1,
@ -436,7 +437,10 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
120.wb,
_goodDetail!.stockStatus == 1
20.hb,
Offstage(
offstage: receiveAddress == '选择收货地址',
child: (_goodDetail!.stockStatus == 1)
? '有货'
.text
.color(Color(0xFFE52E2E))
@ -447,6 +451,7 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
.color(Color(0xFFE52E2E))
.size(28.sp)
.make(),
)
],
),
],
@ -661,7 +666,10 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
children: [
GestureDetector(
onTap: () async {
await SearchFunc.addGoodsCar(_goodDetail!.id);
var re = await SearchFunc.addGoodsCar(_goodDetail!.id);
if (re) {
Get.back();
}
},
child: Container(
width: 230.w,
@ -684,7 +692,11 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
GestureDetector(
onTap: () {
if (_goodDetail!.stockStatus == 0) {
if (receiveAddress == '选择收货地址') {
BotToast.showText(text: '请添加收货地址');
} else {
BotToast.showText(text: '商品库存不足');
}
} else {
Get.to(() => SubmitOrderNormalPage(
goodModel: _goodDetail!,

@ -78,13 +78,8 @@ class SearchFunc {
///
static Future<bool> addGoodsCar(int jcookGoodsId) async {
BaseModel model = await NetUtil().get(
SAASAPI.market.shopCart.insert,
params: {'appGoodsPushId': jcookGoodsId},
);
if (!model.success) {
BotToast.showText(text: model.msg);
}
BaseModel model = await NetUtil().get(SAASAPI.market.shopCart.insert,
params: {'appGoodsPushId': jcookGoodsId}, showMessage: true);
return model.success;
}

@ -57,8 +57,8 @@ class _SubmitOrderPageState extends State<SubmitOrderPage> {
SettlementGoodsDTO(appGoodsPushId: element.id, num: element.num));
});
if (appProvider.addressModel != null) {
_addressModel = appProvider.addressModel!;
if (appProvider.defaultAddressModel != null) {
_addressModel = appProvider.defaultAddressModel!;
createOrder(_addressModel!.id!, _goodsList);
} else {
_addressModel = null;

@ -59,8 +59,8 @@ class _SubmitOrderNormalPageState extends State<SubmitOrderNormalPage> {
_goodsList
.add(SettlementGoodsDTO(appGoodsPushId: widget.goodModel.id, num: 1));
if (appProvider.addressModel != null) {
_addressModel = appProvider.addressModel!;
if (appProvider.defaultAddressModel != null) {
_addressModel = appProvider.defaultAddressModel!;
createOrder(_addressModel!.id!, _goodsList);
} else {
_addressModel = null;

@ -11,6 +11,7 @@ import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bee_check_radio.dart';
import 'package:aku_new_community/widget/buttons/end_button.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -293,7 +294,7 @@ class _ShopCarPageState extends State<ShopCarPage> {
'¥'
.richText
.withTextSpanChildren([
sellPrice
NumUtil.add(sellPrice, 0)
.toInt()
.toString()
.textSpan
@ -326,6 +327,9 @@ class _ShopCarPageState extends State<ShopCarPage> {
children: [
GestureDetector(
onTap: () {
if (model.goodStatus == GoodStatus.unSell) {
return;
}
if (_selectIndex.contains(index)) {
_selectIndex.remove(index);
_chooseModels.remove(model);
@ -409,6 +413,8 @@ class _ShopCarPageState extends State<ShopCarPage> {
),
),
Positioned(
top: 0,
left: 0,
child: _getGoodsStatusImg(model.goodStatus) ?? SizedBox())
],
),
@ -470,9 +476,12 @@ class _ShopCarPageState extends State<ShopCarPage> {
switch (status) {
case GoodStatus.unSell:
return Container(
width: double.infinity,
height: double.infinity,
width: 220.w,
height: 220.w,
decoration: BoxDecoration(
color: Color(0xFF000000).withOpacity(0.5),
borderRadius: BorderRadius.circular(16.w),
),
alignment: Alignment.center,
child: Text(
'已下架',

@ -0,0 +1,308 @@
import 'dart:ui';
import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/pages/community_introduce/community_introduce_page.dart';
import 'package:aku_new_community/pages/convenient_phone/convenient_phone_page.dart';
import 'package:aku_new_community/pages/electronic_commerc/electronic_commerc_page.dart';
import 'package:aku_new_community/pages/event_activity/event_voting_page.dart';
import 'package:aku_new_community/pages/express_packages/express_package_page.dart';
import 'package:aku_new_community/pages/geographic_information/geograhic_information.dart';
import 'package:aku_new_community/pages/goods_deto_page/goods_deto_page.dart';
import 'package:aku_new_community/pages/goods_manage_page/select_borrow_return_page.dart';
import 'package:aku_new_community/pages/house_introduce/house_introduce.dart';
import 'package:aku_new_community/pages/industry_committee/industry_committee_page.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_page_new.dart';
import 'package:aku_new_community/pages/opening_code_page/opening_code_page.dart';
import 'package:aku_new_community/pages/renovation_manage/new_renovation/new_renovation_page.dart';
import 'package:aku_new_community/pages/service_browse/service_browse_page.dart';
import 'package:aku_new_community/pages/services/old_age/old_age_support_page_simple.dart';
import 'package:aku_new_community/pages/surrounding_enterprises/surrounding_enterprises_page.dart';
import 'package:aku_new_community/ui/community/facility/facility_appointment_page.dart';
import 'package:aku_new_community/ui/function_and_service/task/task_page.dart';
import 'package:aku_new_community/ui/function_and_service/work_order/work_order_page.dart';
import 'package:aku_new_community/ui/home/application/all_application.dart';
import 'package:aku_new_community/ui/manager/advice/advice_page.dart';
import 'package:aku_new_community/ui/manager/questionnaire/questionnaire_page.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:equatable/equatable.dart';
import 'package:get/get.dart';
class ApplicationUtil {
ApplicationUtil(this.titles);
List<String> titles = [];
List<AppElement> get elements {
var list = <AppElement>[];
this.titles.forEach((element) {
var re = _findByTitle(element);
if (re != null) {
list.add(re);
}
});
return list;
}
AppElement? _findByTitle(String title) {
for (var item in allApplications) {
if (title == item.title) {
return item;
} else if (item.nickTitles.contains(title)) {
return item;
}
}
}
List<AppElement> get allApplications => [
AppElement(
title: '开门码',
imgPath: Assets.newIcon.icKmm.path,
onTap: () => Get.to(() => OpeningCodePage())),
// AppElement('访客邀请', R.ASSETS_ICONS_FUNC_FKYQ_PNG, () => Get.to(()=>VisitorAccessPage()),
AppElement(
title: '报事报修',
imgPath: Assets.home.icBsbx.path,
onTap: () => Get.to(() => WorkOrderPage())),
AppElement(
title: '生活缴费',
imgPath: Assets.home.icShjf.path,
onTap: () => Get.to(() => LifePayPageNew())),
AppElement(
title: '业委会',
imgPath: Assets.newIcon.icYwh.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
Get.to(() => IndustryCommitteePage());
}),
// AppElement('建议咨询', R.ASSETS_ICONS_FUNC_JYZX_PNG,
// () => AdvicePage(type: AdviceType.SUGGESTION)),
AppElement(
title: '便民电话',
imgPath: Assets.newIcon.imgBmdh.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
Get.to(() => ConvenientPhonePage());
}),
AppElement(
title: '活动投票',
imgPath: Assets.newIcon.icHdtp.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
Get.to(() => EventVotingPage());
}),
AppElement(
title: '物品出门',
imgPath: Assets.newIcon.imgWpcm.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
Get.to(() => GoodsDetoPage());
}),
AppElement(
title: '投诉表扬',
imgPath: Assets.newIcon.icTsby.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
Get.to(() => AdvicePage(type: AdviceType.COMPLAIN));
}),
AppElement(
title: '问卷调查',
imgPath: Assets.newIcon.icWjdc.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
Get.to(() => QuestionnairePage());
}),
AppElement(
title: '装修管理',
imgPath: Assets.newIcon.imgZxgl.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => NewRenovationPage());
}),
AppElement(
title: '借还管理',
imgPath: Assets.newIcon.icJhgl.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
Get.to(SelectBorrowReturnPage());
}),
// AppElement('一键报警', Assets.newIcon.yj, () => AlarmPage()),
AppElement(
title: '设施预约',
imgPath: Assets.home.icSsyy.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => FacilityAppointmentPage());
}),
AppElement(
title: '快递包裹',
imgPath: Assets.newIcon.icKdbg.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => ExpressPackagePage());
}),
AppElement(
title: '电子商务',
imgPath: Assets.newIcon.icDzsw.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => ElectronicCommercPage());
}),
AppElement(
title: '服务浏览',
imgPath: Assets.newIcon.icFwll.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => ServiceBrowsePage());
}),
AppElement(
title: '社区介绍',
imgPath: Assets.newIcon.icSqjs.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => CommunityIntroducePage());
}),
// AppElement('家政服务', R.ASSETS_ICONS_FUNC_JZFW_PNG, () => HouseKeepingPage()),
AppElement(
title: '地理信息',
imgPath: Assets.newIcon.icDlxx.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => GeographicInformationPage());
}),
AppElement(
title: '周边企业',
imgPath: Assets.newIcon.icZbqy.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => SurroundingEnterprisesPage());
}),
AppElement(
title: '住房说明',
imgPath: Assets.newIcon.icRwsm.path,
onTap: () {
BotToast.showText(text: '此功能升级中,敬请期待');
return;
Get.to(() => HouseIntroducePage());
}),
AppElement(
title: '智慧养老',
imgPath: Assets.home.icZhyl.path,
onTap: () {
Get.to(() => OldAgeSupportPageSimple());
}),
AppElement(
title: '周边服务',
imgPath: Assets.home.icZbfw.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
}),
AppElement(
title: '任务发布',
imgPath: Assets.home.icRwfb.path,
onTap: () => Get.to(() => TaskPage()),
nickTitles: ['小蜜蜂任务']),
AppElement(
title: '自营商城',
imgPath: Assets.icons.shoppingMall.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
}),
AppElement(
title: '邻家宠物',
imgPath: Assets.home.icLjcw.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
}),
AppElement(
title: '共享停车',
imgPath: Assets.icons.sharePark.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
}),
AppElement(
title: '二手市场',
imgPath: Assets.icons.secondHandMarket.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
}),
AppElement(
title: '共享投屏',
imgPath: Assets.icons.projectionScreen.path,
onTap: () {
BotToast.showText(text: '此功能暂未上线');
return;
}),
AppElement(
title: '全部应用',
imgPath: Assets.home.icQbyy.path,
onTap: () => Get.to(() => AllApplicationPage())),
// AppElement(
// '小区教育',
// R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
// () => BeeScaffold(title: '小区教育'),
// ),
// AppElement(
// '健康运动',
// R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
// () => BeeScaffold(title: '健康运动'),
// ),
// AppElement(
// '家政服务',
// R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
// () => BeeScaffold(title: '家政服务'),
// ),
// AppElement(
// '居家养老',
// R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
// () => BeeScaffold(title: '居家养老'),
// ),
// AppElement(
// '物业租赁',
// R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
// () => BeeScaffold(title: '物业租赁'),
// ),
];
}
class AppElement extends Equatable {
final String title;
final String imgPath;
final VoidCallback onTap;
final List<String> nickTitles;
const AppElement({
required this.title,
required this.imgPath,
required this.onTap,
this.nickTitles = const [],
});
@override
List<Object?> get props => [
title,
imgPath,
onTap,
];
}

@ -88,9 +88,9 @@ class _BeeHouseCascadePickerState extends State<BeeHouseCascadePicker> {
child: CupertinoPicker(
onSelectedItemChanged: (int value) {
_pickBuildingIndex = value;
// _pickUnitIndex = 0;
// _pickFloorIndex = 0;
// _pickHouseIndex = 0;
_pickUnitIndex = 0;
_pickFloorIndex = 0;
_pickHouseIndex = 0;
_unitController.jumpToItem(0);
_floorController.jumpToItem(0);
_houseController.jumpToItem(0);
@ -111,8 +111,8 @@ class _BeeHouseCascadePickerState extends State<BeeHouseCascadePicker> {
child: CupertinoPicker(
onSelectedItemChanged: (int value) {
_pickUnitIndex = value;
// _pickFloorIndex = 0;
// _pickHouseIndex = 0;
_pickFloorIndex = 0;
_pickHouseIndex = 0;
_floorController.jumpToItem(0);
_houseController.jumpToItem(0);
setState(() {});
@ -132,7 +132,7 @@ class _BeeHouseCascadePickerState extends State<BeeHouseCascadePicker> {
child: CupertinoPicker(
onSelectedItemChanged: (int value) {
_pickFloorIndex = value;
// _pickHouseIndex = 0;
_pickHouseIndex = 0;
_houseController.jumpToItem(0);
setState(() {});
},

@ -20,7 +20,7 @@ dependencies:
#状态管理
provider: ^6.0.0
#屏幕适配
flutter_screenutil: ^5.0.0+2
flutter_screenutil: ^5.3.1
#图标集合
cupertino_icons: ^1.0.3
#超链接 跳转拨号等

Loading…
Cancel
Save