parent
6fd92c3edc
commit
4c3c739c9f
@ -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,
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -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…
Reference in new issue