修复房屋选择问题,修复选择搬家公司默认为自己搬运,优化点击区域

hmxc
张萌 4 years ago
parent b943160ba0
commit 416e9c96fb

@ -54,7 +54,7 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
'50kg-100kg',
'> 100kg',
];
int _selectApproach;
int _selectApproach=0;
List<String> _listMode = [
'自己搬运',
'搬家公司',

@ -31,7 +31,7 @@ class _SelectMoveCompanyPageState extends State<SelectMoveCompanyPage> {
bool _onloading = true;
String get result {
if (_selected == _companyModel.appMovingCompanyVoList.length) {
return null;
return '已选择自己联系';
} else {
return _companyModel.appMovingCompanyVoList[_selected].tel;
}
@ -92,7 +92,7 @@ class _SelectMoveCompanyPageState extends State<SelectMoveCompanyPage> {
],
).expand(),
],
),
).material(color: Colors.transparent),
),
);
}
@ -104,6 +104,7 @@ class _SelectMoveCompanyPageState extends State<SelectMoveCompanyPage> {
setState(() {});
},
child: Container(
width: double.infinity,
padding: EdgeInsets.symmetric(vertical: 28.w),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
@ -119,7 +120,7 @@ class _SelectMoveCompanyPageState extends State<SelectMoveCompanyPage> {
'自己联系'.text.color(ktextPrimary).size(28.sp).bold.make()
],
),
),
).material(color: Colors.transparent),
);
}

@ -49,8 +49,9 @@ Widget _unPaidTag() {
class _MyHousePageState extends State<MyHousePage> {
int _select;
List<EstatePaymentModel> _list;
List<EstatePaymentModel> get _unPaidList => _list.where((element) => element.status == 1).toList();
List<EstatePaymentModel> _list = [];
List<EstatePaymentModel> get _unPaidList =>
_list.where((element) => element.status == 1).toList();
@override
void initState() {
super.initState();
@ -59,7 +60,6 @@ class _MyHousePageState extends State<MyHousePage> {
_list = value.data;
return _list;
});
}
}
@ -67,19 +67,18 @@ class _MyHousePageState extends State<MyHousePage> {
{bool paid = false}) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 32.w),
child: Row(
children: [
GestureDetector(
child: GestureDetector(
onTap: () {
_select = index;
setState(() {});
},
child: CommonRadio(
child: Row(
children: [
CommonRadio(
value: index,
groupValue: _select,
size: 32.w,
),
),
24.w.widthBox,
Column(
crossAxisAlignment: CrossAxisAlignment.start,
@ -102,6 +101,7 @@ class _MyHousePageState extends State<MyHousePage> {
? _unPaidTag()
: SizedBox()
],
).material(color: Colors.transparent),
),
);
}

Loading…
Cancel
Save