c9df43c8
Key
feat: 修改个人信息、接口
|
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
titleText: '修改${type.title}',
),
body: BlocListener<UserBloc, UserState>(
listener: (context, state) {
},
child: BlocBuilder<UserBloc, UserState>(builder: (context, state) {
//final bloc = context.read<UserBloc>();
// 区别是什么?
//BlocProvider.of<UserBloc>(context);
return SingleChildScrollView(
child: Column(
children: [
Padding(
padding: EdgeInsets.only(left: 65.w, right: 55.w, top: 38.h),
child: Row(
children: [
Text(
type.title,
style: TextStyle(
fontWeight: FontWeight.w700,
color: const Color(0xFF333333),
fontSize: 21.sp,
),
),
20.horizontalSpace,
TextFieldCustomerWidget(
height: 65.h,
width: 222.w,
bgImageName: 'Input_layer_up',
textInputType: TextInputType.name,
inputFormatters: [
LengthLimitingTextInputFormatter(12),
FilteringTextInputFormatter.deny(RegExp('[ ]')),
],
//controller: bloc.modifyTextController,
/*onChangeValue: (String value) {
bloc.add(CodeNumberChangeEvent());
},*/
),
Expanded(
child: Container(),
),
// 按钮
GestureDetector(
onTap: () {
// 更新type类型的字段
//bloc.add(UserUpdate(type));
},
child: Container(
alignment: Alignment.center,
width: 90.w,
height: 44.h,
decoration: BoxDecoration(
image: DecorationImage(image: AssetImage(AssetsConst.bgButtonBlue), fit: BoxFit.fill),
),
child: Text(
'确定',
style: TextStyle(fontSize: 17.sp, color: Colors.white),
),
),
)
],
)),
],
));
}),
|