|
|
@ -49,8 +49,9 @@ Widget _unPaidTag() {
|
|
|
|
|
|
|
|
|
|
|
|
class _MyHousePageState extends State<MyHousePage> {
|
|
|
|
class _MyHousePageState extends State<MyHousePage> {
|
|
|
|
int _select;
|
|
|
|
int _select;
|
|
|
|
List<EstatePaymentModel> _list;
|
|
|
|
List<EstatePaymentModel> _list = [];
|
|
|
|
List<EstatePaymentModel> get _unPaidList => _list.where((element) => element.status == 1).toList();
|
|
|
|
List<EstatePaymentModel> get _unPaidList =>
|
|
|
|
|
|
|
|
_list.where((element) => element.status == 1).toList();
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
super.initState();
|
|
|
@ -59,7 +60,6 @@ class _MyHousePageState extends State<MyHousePage> {
|
|
|
|
_list = value.data;
|
|
|
|
_list = value.data;
|
|
|
|
return _list;
|
|
|
|
return _list;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -67,41 +67,41 @@ class _MyHousePageState extends State<MyHousePage> {
|
|
|
|
{bool paid = false}) {
|
|
|
|
{bool paid = false}) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 32.w),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 32.w),
|
|
|
|
child: Row(
|
|
|
|
child: GestureDetector(
|
|
|
|
children: [
|
|
|
|
onTap: () {
|
|
|
|
GestureDetector(
|
|
|
|
_select = index;
|
|
|
|
onTap: () {
|
|
|
|
setState(() {});
|
|
|
|
_select = index;
|
|
|
|
},
|
|
|
|
setState(() {});
|
|
|
|
child: Row(
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
child: CommonRadio(
|
|
|
|
CommonRadio(
|
|
|
|
value: index,
|
|
|
|
value: index,
|
|
|
|
groupValue: _select,
|
|
|
|
groupValue: _select,
|
|
|
|
size: 32.w,
|
|
|
|
size: 32.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
24.w.widthBox,
|
|
|
|
24.w.widthBox,
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
kEstateName.text.size(24.sp).color(ktextSubColor).bold.make(),
|
|
|
|
kEstateName.text.size(24.sp).color(ktextSubColor).bold.make(),
|
|
|
|
16.w.heightBox,
|
|
|
|
16.w.heightBox,
|
|
|
|
BeeParse.getEstateName(estateName)
|
|
|
|
BeeParse.getEstateName(estateName)
|
|
|
|
.text
|
|
|
|
.text
|
|
|
|
.color(ktextPrimary)
|
|
|
|
.color(ktextPrimary)
|
|
|
|
.size(28.sp)
|
|
|
|
.size(28.sp)
|
|
|
|
.bold
|
|
|
|
.bold
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
currentHouse == estateName
|
|
|
|
currentHouse == estateName
|
|
|
|
? _currentHouseTag()
|
|
|
|
? _currentHouseTag()
|
|
|
|
: paid
|
|
|
|
: paid
|
|
|
|
? _unPaidTag()
|
|
|
|
? _unPaidTag()
|
|
|
|
: SizedBox()
|
|
|
|
: SizedBox()
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).material(color: Colors.transparent),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|