parent
84bc9708d7
commit
38dcecbc30
@ -0,0 +1,54 @@
|
||||
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||
import 'package:aku_community/widget/others/bee_input_row.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SupplementInformationPage extends StatefulWidget {
|
||||
SupplementInformationPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_SupplementInformationPageState createState() =>
|
||||
_SupplementInformationPageState();
|
||||
}
|
||||
|
||||
class _SupplementInformationPageState extends State<SupplementInformationPage> {
|
||||
TextEditingController _nameController = TextEditingController();
|
||||
String _sex = '请选择性别';
|
||||
TextEditingController _phoneController = TextEditingController();
|
||||
TextEditingController _codeController = TextEditingController();
|
||||
TextEditingController _emergencyContactController = TextEditingController();
|
||||
TextEditingController _emergencyPhoneController = TextEditingController();
|
||||
TextEditingController _addressController = TextEditingController();
|
||||
TextEditingController _workUnitController = TextEditingController();
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
title: '补充个人信息',
|
||||
bodyColor: Colors.white,
|
||||
body: ListView(
|
||||
children: [
|
||||
BeeInputRow(
|
||||
title: '承租人',
|
||||
controller: _nameController,
|
||||
hintText: '杨赟',
|
||||
isRequire: true,
|
||||
),
|
||||
BeeInputRow.button(title: '性别', onPressed:(){} , hintText: _sex,isRequire: true,),
|
||||
BeeInputRow(title: '手机号码', controller: _phoneController, hintText: '13742494159',isRequire: true,),
|
||||
BeeInputRow(title: '身份证号', controller: _codeController, hintText: 'hintText',isRequire: true,),
|
||||
BeeInputRow(title: '紧急联系人', controller: _emergencyContactController, hintText: 'hintText'),
|
||||
BeeInputRow(title: '紧急联系人电话', controller: _emergencyPhoneController, hintText: 'hintText'),
|
||||
BeeInputRow(title: '通讯地址(含诉讼送达地址)', controller: _addressController, hintText: 'hintText'),
|
||||
BeeInputRow(title: '工作单位', controller: _workUnitController, hintText: 'hintText'),
|
||||
|
||||
|
||||
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
import 'package:aku_community/base/base_style.dart';
|
||||
import 'package:aku_community/const/resource.dart';
|
||||
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||
import 'package:aku_community/widget/buttons/card_bottom_button.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
class TenantHouseListPage extends StatefulWidget {
|
||||
TenantHouseListPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_TenantHouseListPageState createState() => _TenantHouseListPageState();
|
||||
}
|
||||
|
||||
class _TenantHouseListPageState extends State<TenantHouseListPage> {
|
||||
bool _onload = true;
|
||||
late EasyRefreshController _refreshController;
|
||||
@override
|
||||
void initState() {
|
||||
_refreshController = EasyRefreshController();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_refreshController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(
|
||||
title: '可选房屋',
|
||||
body: EasyRefresh(
|
||||
firstRefresh: true,
|
||||
header: MaterialHeader(),
|
||||
controller: _refreshController,
|
||||
onRefresh: () async {
|
||||
_onload = false;
|
||||
setState(() {});
|
||||
},
|
||||
child: _onload
|
||||
? Container()
|
||||
: ListView(
|
||||
padding: EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w),
|
||||
children: [houseCard()],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
List<Color> _getColors(int type) {
|
||||
switch (type) {
|
||||
case 1:
|
||||
return [
|
||||
Color(0xFFFFE5D2),
|
||||
Color(0xFFFFFFFF),
|
||||
];
|
||||
case 2:
|
||||
return [
|
||||
Color(0xFFFFEEBB),
|
||||
Color(0xFFFFF4D2),
|
||||
];
|
||||
default:
|
||||
return [Colors.white, Colors.white];
|
||||
}
|
||||
}
|
||||
|
||||
Widget houseCard() {
|
||||
var buttons = Row(
|
||||
children: [CardBottomButton.yellow(text: '填写信息', onPressed: () {})],
|
||||
);
|
||||
var bottom = Row(
|
||||
children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
'二类人才'.text.size(28.sp).color(ktextSubColor).make(),
|
||||
8.w.heightBox,
|
||||
'B座C1户型'.text.size(28.sp).color(ktextSubColor).make(),
|
||||
],
|
||||
).expand(),
|
||||
buttons
|
||||
],
|
||||
);
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(16.w),
|
||||
gradient: LinearGradient(
|
||||
colors: _getColors(1),
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight),
|
||||
),
|
||||
width: double.infinity,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
16.w.widthBox,
|
||||
'南宁金融人才公寓'.text.size(32.sp).color(ktextPrimary).make().expand(),
|
||||
'待签署'.text.size(32.sp).color(ktextPrimary).bold.make(),
|
||||
],
|
||||
),
|
||||
12.w.heightBox,
|
||||
Row(
|
||||
children: [
|
||||
'1幢-1单元-702室'
|
||||
.text
|
||||
.size(40.sp)
|
||||
.color(ktextPrimary)
|
||||
.bold
|
||||
.make()
|
||||
.expand(),
|
||||
],
|
||||
),
|
||||
56.w.heightBox,
|
||||
bottom,
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
import 'package:aku_community/base/base_style.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
class IdentifyCardPicker {
|
||||
static front() {
|
||||
return Column(
|
||||
children: [
|
||||
'上传身份证正面'.text.size(28.sp).color(ktextPrimary).make(),
|
||||
24.w.heightBox,
|
||||
Container(
|
||||
width: 350.w,
|
||||
height: 220.w,
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue