添加房屋信息核对页面

hmxc
张萌 3 years ago
parent 6fd92c3edc
commit 4c3c739c9f

@ -1,5 +1,6 @@
import 'package:aku_community/pages/life_pay/pay_util.dart'; import 'package:aku_community/pages/life_pay/pay_util.dart';
import 'package:aku_community/utils/network/base_model.dart'; import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -17,7 +18,6 @@ import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/pages/life_pay/widget/life_pay_detail_page.dart'; import 'package:aku_community/pages/life_pay/widget/life_pay_detail_page.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/provider/app_provider.dart'; import 'package:aku_community/provider/app_provider.dart';
import 'package:aku_community/ui/profile/house/pick_my_house_page.dart';
import 'package:aku_community/utils/bee_parse.dart'; import 'package:aku_community/utils/bee_parse.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/net_util.dart'; import 'package:aku_community/utils/network/net_util.dart';
@ -65,64 +65,6 @@ class _LifePayPageState extends State<LifePayPage> {
super.dispose(); super.dispose();
} }
Widget _buildHouseCard() {
AppProvider appProvider = Provider.of<AppProvider>(context);
return Material(
color: kForeGroundColor,
child: Padding(
padding: EdgeInsets.all(32.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
'当前房屋'.text.black.size(28.sp).make(),
32.w.heightBox,
GestureDetector(
onTap: () {
Get.to(() => PickMyHousePage());
_controller!.callRefresh();
},
child: Row(
children: [
Image.asset(
R.ASSETS_ICONS_HOUSE_PNG,
width: 60.w,
height: 60.w,
),
40.w.widthBox,
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
S
.of(context)!
.tempPlotName
.text
.black
.size(32.sp)
.bold
.make(),
10.w.heightBox,
appProvider.selectedHouse!.roomName.text.black
.size(32.sp)
.bold
.make()
],
),
),
Icon(
CupertinoIcons.chevron_forward,
size: 40.w,
),
],
).material(color: Colors.transparent),
),
24.w.heightBox,
],
),
),
);
}
Widget _buildCard(LifePayModel model, int index) { Widget _buildCard(LifePayModel model, int index) {
return Container( return Container(
padding: EdgeInsets.symmetric(vertical: 20.w), padding: EdgeInsets.symmetric(vertical: 20.w),
@ -359,7 +301,7 @@ class _LifePayPageState extends State<LifePayPage> {
if (items != null) _models = items as List<LifePayModel?>; if (items != null) _models = items as List<LifePayModel?>;
return Column( return Column(
children: [ children: [
_buildHouseCard(), HouseHeadCard( controller: _controller, context: context),
16.w.heightBox, 16.w.heightBox,
Container( Container(
padding: EdgeInsets.all(32.w), padding: EdgeInsets.all(32.w),
@ -440,3 +382,5 @@ class _LifePayPageState extends State<LifePayPage> {
); );
} }
} }

@ -0,0 +1,105 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
class HouseInformationCheckPage extends StatefulWidget {
HouseInformationCheckPage({Key? key}) : super(key: key);
@override
_HouseInformationCheckPageState createState() =>
_HouseInformationCheckPageState();
}
class _HouseInformationCheckPageState extends State<HouseInformationCheckPage> {
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '房屋信息核对',
bodyColor: Colors.white,
body: ListView(
padding: EdgeInsets.only(bottom: 24.w, left: 32.w,right: 32.w),
children: [
_houseHead(),
_textTile('认定人才类型', '二类人才'),
_textTile('房屋户型', 'B座C1户型'),
_textTile('房屋结构', '两房两卫一厅'),
_textTile('建筑面积', '90平米'),
_textTile('使用面积', '78平米'),
_textTile('租赁期限', '2020-10-26 ———— 2023-10-25'),
].sepWidget(separate: 24.w.heightBox),
),
bottomNavi: BottomButton(
onPressed: () {},
child: '确认'.text.size(32.sp).bold.color(ktextPrimary).make(),
),
);
}
Widget _textTile(String title, String content) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
title.text.size(28.sp).color(ktextPrimary).make(),
24.w.heightBox,
content.text.size(36.sp).color(ktextPrimary).bold.make(),
16.w.heightBox,
BeeDivider.horizontal()
],
);
}
Widget _houseHead() {
return Material(
color: kForeGroundColor,
child: Padding(
padding: EdgeInsets.all(32.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
'当前房屋'.text.black.size(28.sp).make(),
32.w.heightBox,
Row(
children: [
Image.asset(
R.ASSETS_ICONS_HOUSE_PNG,
width: 60.w,
height: 60.w,
),
40.w.widthBox,
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
S
.of(context)!
.tempPlotName
.text
.black
.size(32.sp)
.bold
.make(),
10.w.heightBox,
'appProvider.selectedHouse!'
.text
.black
.size(32.sp)
.bold
.make()
],
),
),
],
).material(color: Colors.transparent),
24.w.heightBox,
],
),
),
);
}
}

@ -1,4 +1,5 @@
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/ui/profile/house/house_information_check_page.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/bee_input_row.dart'; import 'package:aku_community/widget/others/bee_input_row.dart';
@ -88,7 +89,9 @@ class _SupplementInformationPageState extends State<SupplementInformationPage> {
].sepWidget(separate: 24.w.heightBox), ].sepWidget(separate: 24.w.heightBox),
), ),
bottomNavi: BottomButton( bottomNavi: BottomButton(
onPressed: () {}, onPressed: () {
Get.to(() => HouseInformationCheckPage());
},
child: '下一步'.text.size(32.sp).bold.color(ktextPrimary).make()), child: '下一步'.text.size(32.sp).bold.color(ktextPrimary).make()),
); );
} }

@ -0,0 +1,82 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/provider/app_provider.dart';
import 'package:aku_community/ui/profile/house/pick_my_house_page.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
class HouseHeadCard extends StatelessWidget {
const HouseHeadCard({
Key? key,
required this.context,
required EasyRefreshController? controller,
}) : controller = controller, super(key: key);
final BuildContext context;
final EasyRefreshController? controller;
@override
Widget build(BuildContext context) {
AppProvider appProvider = Provider.of<AppProvider>(context);
return Material(
color: kForeGroundColor,
child: Padding(
padding: EdgeInsets.all(32.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
'当前房屋'.text.black.size(28.sp).make(),
32.w.heightBox,
GestureDetector(
onTap: () {
Get.to(() => PickMyHousePage());
controller!.callRefresh();
},
child: Row(
children: [
Image.asset(
R.ASSETS_ICONS_HOUSE_PNG,
width: 60.w,
height: 60.w,
),
40.w.widthBox,
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
S
.of(context)!
.tempPlotName
.text
.black
.size(32.sp)
.bold
.make(),
10.w.heightBox,
appProvider.selectedHouse!.roomName.text.black
.size(32.sp)
.bold
.make()
],
),
),
Icon(
CupertinoIcons.chevron_forward,
size: 40.w,
),
],
).material(color: Colors.transparent),
),
24.w.heightBox,
],
),
),
);
}
}
Loading…
Cancel
Save