更新日历样式
This commit is contained in:
@@ -317,16 +317,14 @@ class EditAddressPage extends GetView<AddressController>
|
||||
),
|
||||
),
|
||||
Container(
|
||||
width: MediaQuery.sizeOf(
|
||||
context)
|
||||
.width,
|
||||
height: MediaQuery.sizeOf(
|
||||
context)
|
||||
.height *
|
||||
0.038,
|
||||
constraints:
|
||||
const BoxConstraints(
|
||||
minHeight: 31,
|
||||
// width: MediaQuery.sizeOf(
|
||||
// context)
|
||||
// .width,
|
||||
height:
|
||||
bodysize!.maxHeight *
|
||||
0.038,
|
||||
constraints: BoxConstraints(
|
||||
minHeight: 61.rpx,
|
||||
),
|
||||
decoration: BoxDecoration(),
|
||||
child: Row(
|
||||
@@ -339,19 +337,14 @@ class EditAddressPage extends GetView<AddressController>
|
||||
context)
|
||||
.width *
|
||||
0.17,
|
||||
height:
|
||||
MediaQuery.sizeOf(
|
||||
context)
|
||||
.height *
|
||||
0.038,
|
||||
decoration:
|
||||
BoxDecoration(),
|
||||
constraints:
|
||||
BoxConstraints(
|
||||
minWidth:
|
||||
105.rpx,
|
||||
maxWidth:
|
||||
105.rpx),
|
||||
decoration:
|
||||
BoxDecoration(),
|
||||
child: Row(
|
||||
mainAxisSize:
|
||||
MainAxisSize
|
||||
@@ -375,8 +368,6 @@ class EditAddressPage extends GetView<AddressController>
|
||||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
width: 100,
|
||||
height: 100,
|
||||
decoration:
|
||||
BoxDecoration(
|
||||
color:
|
||||
@@ -386,105 +377,120 @@ class EditAddressPage extends GetView<AddressController>
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
child:
|
||||
TextFormField(
|
||||
// autofocus: true,
|
||||
obscureText:
|
||||
false,
|
||||
onChanged: (val) {
|
||||
controller.model
|
||||
.name = val;
|
||||
},
|
||||
|
||||
initialValue:
|
||||
address[
|
||||
'name'],
|
||||
decoration:
|
||||
InputDecoration(
|
||||
contentPadding:
|
||||
EdgeInsets
|
||||
.symmetric(
|
||||
vertical:
|
||||
25.rpx,
|
||||
horizontal:
|
||||
26.rpx,
|
||||
),
|
||||
labelStyle:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
),
|
||||
hintStyle:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
),
|
||||
enabledBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
width:
|
||||
double.infinity,
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
35.rpx,
|
||||
0,
|
||||
35.rpx,
|
||||
0),
|
||||
child: Row(
|
||||
mainAxisSize:
|
||||
MainAxisSize
|
||||
.max,
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Expanded(
|
||||
child:
|
||||
Container(
|
||||
child:
|
||||
Align(
|
||||
alignment: AlignmentDirectional(
|
||||
-1,
|
||||
0),
|
||||
child:
|
||||
TextFormField(
|
||||
onChanged:
|
||||
(value) {
|
||||
controller.model.name =
|
||||
value;
|
||||
},
|
||||
autofocus:
|
||||
false,
|
||||
obscureText:
|
||||
false,
|
||||
decoration:
|
||||
InputDecoration(
|
||||
contentPadding:
|
||||
EdgeInsets.all(0),
|
||||
isDense:
|
||||
true,
|
||||
labelStyle:
|
||||
TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
hintStyle:
|
||||
TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController.currentColor.sc4,
|
||||
),
|
||||
enabledBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
focusedBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
errorBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Colors.red,
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
focusedErrorBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Colors.red,
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
filled:
|
||||
false,
|
||||
fillColor:
|
||||
Colors.white,
|
||||
),
|
||||
style:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
color:
|
||||
Colors.black,
|
||||
fontSize:
|
||||
26.rpx,
|
||||
),
|
||||
// cursorColor:
|
||||
// Colors.black,
|
||||
// validator: _model
|
||||
// .textControllerValidator
|
||||
// .asValidator(context),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
focusedBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
errorBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
focusedErrorBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
color: Colors
|
||||
.black,
|
||||
fontSize:
|
||||
26.rpx,
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -494,17 +500,16 @@ class EditAddressPage extends GetView<AddressController>
|
||||
),
|
||||
),
|
||||
Container(
|
||||
width: MediaQuery.sizeOf(
|
||||
context)
|
||||
.width,
|
||||
height: MediaQuery.sizeOf(
|
||||
context)
|
||||
.height *
|
||||
0.038,
|
||||
constraints:
|
||||
const BoxConstraints(
|
||||
minHeight: 31,
|
||||
// width: MediaQuery.sizeOf(
|
||||
// context)
|
||||
// .width,
|
||||
height:
|
||||
bodysize!.maxHeight *
|
||||
0.038,
|
||||
constraints: BoxConstraints(
|
||||
minHeight: 61.rpx,
|
||||
),
|
||||
decoration: BoxDecoration(),
|
||||
child: Row(
|
||||
mainAxisSize:
|
||||
MainAxisSize.max,
|
||||
@@ -515,19 +520,14 @@ class EditAddressPage extends GetView<AddressController>
|
||||
context)
|
||||
.width *
|
||||
0.17,
|
||||
height:
|
||||
MediaQuery.sizeOf(
|
||||
context)
|
||||
.height *
|
||||
0.038,
|
||||
decoration:
|
||||
BoxDecoration(),
|
||||
constraints:
|
||||
BoxConstraints(
|
||||
minWidth:
|
||||
105.rpx,
|
||||
maxWidth:
|
||||
105.rpx),
|
||||
decoration:
|
||||
BoxDecoration(),
|
||||
child: Row(
|
||||
mainAxisSize:
|
||||
MainAxisSize
|
||||
@@ -535,136 +535,145 @@ class EditAddressPage extends GetView<AddressController>
|
||||
children: [
|
||||
Text(
|
||||
'手机号',
|
||||
style:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
fontSize:
|
||||
AppFontsize
|
||||
.normal_text_size,
|
||||
letterSpacing:
|
||||
0,
|
||||
color: Colors
|
||||
.white,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
fontSize:
|
||||
AppFontsize
|
||||
.normal_text_size,
|
||||
letterSpacing:
|
||||
0,
|
||||
color: Colors
|
||||
.white),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
width: 100,
|
||||
height: 100,
|
||||
decoration:
|
||||
BoxDecoration(
|
||||
color:
|
||||
Colors.white,
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
color:
|
||||
Colors.white,
|
||||
),
|
||||
child:
|
||||
TextFormField(
|
||||
// autofocus: true,
|
||||
onChanged: (val) {
|
||||
controller.model
|
||||
.tel = val;
|
||||
},
|
||||
textAlignVertical:
|
||||
TextAlignVertical
|
||||
.center, // 垂直居中
|
||||
obscureText:
|
||||
false,
|
||||
initialValue:
|
||||
address[
|
||||
'tel'],
|
||||
decoration:
|
||||
InputDecoration(
|
||||
contentPadding:
|
||||
EdgeInsets
|
||||
.symmetric(
|
||||
vertical:
|
||||
25.rpx,
|
||||
horizontal:
|
||||
26.rpx,
|
||||
),
|
||||
labelStyle:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
),
|
||||
hintStyle:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
),
|
||||
enabledBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
width:
|
||||
double.infinity,
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
35.rpx,
|
||||
0,
|
||||
35.rpx,
|
||||
0),
|
||||
child: Row(
|
||||
mainAxisSize:
|
||||
MainAxisSize
|
||||
.max,
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Expanded(
|
||||
child:
|
||||
Container(
|
||||
child:
|
||||
Align(
|
||||
alignment: AlignmentDirectional(
|
||||
-1,
|
||||
0),
|
||||
child:
|
||||
TextFormField(
|
||||
onChanged:
|
||||
(value) {
|
||||
controller.model.tel =
|
||||
value;
|
||||
},
|
||||
autofocus:
|
||||
false,
|
||||
obscureText:
|
||||
false,
|
||||
decoration:
|
||||
InputDecoration(
|
||||
contentPadding:
|
||||
EdgeInsets.all(0),
|
||||
isDense:
|
||||
true,
|
||||
labelStyle:
|
||||
TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
hintStyle:
|
||||
TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController.currentColor.sc4,
|
||||
),
|
||||
enabledBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
focusedBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
errorBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Colors.red,
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
focusedErrorBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Colors.red,
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
filled:
|
||||
false,
|
||||
fillColor:
|
||||
Colors.white,
|
||||
),
|
||||
style:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
color:
|
||||
Colors.black,
|
||||
fontSize:
|
||||
26.rpx,
|
||||
),
|
||||
// cursorColor:
|
||||
// Colors.black,
|
||||
// validator: _model
|
||||
// .textControllerValidator
|
||||
// .asValidator(context),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
focusedBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
errorBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
focusedErrorBorder:
|
||||
UnderlineInputBorder(
|
||||
borderSide:
|
||||
const BorderSide(
|
||||
color: Color(
|
||||
0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
8),
|
||||
),
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily:
|
||||
'Readex Pro',
|
||||
letterSpacing:
|
||||
0,
|
||||
color: Colors
|
||||
.black,
|
||||
fontSize:
|
||||
26.rpx,
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -740,158 +749,6 @@ class EditAddressPage extends GetView<AddressController>
|
||||
],
|
||||
),
|
||||
),
|
||||
// Expanded(
|
||||
// child: InkWell(
|
||||
// onTap: () {
|
||||
// CityPicker.show(
|
||||
// context:
|
||||
// context,
|
||||
// cityPickerListener:
|
||||
// this,
|
||||
// // 在大屏/Web 上最大宽度为 600px
|
||||
// // 移除内边距
|
||||
// );
|
||||
// },
|
||||
// child: Container(
|
||||
// width: 100,
|
||||
// height: 100,
|
||||
// decoration:
|
||||
// BoxDecoration(
|
||||
// color: const Color(
|
||||
// 0xFFF3F5F6),
|
||||
// borderRadius:
|
||||
// BorderRadius
|
||||
// .circular(
|
||||
// 8),
|
||||
// ),
|
||||
// alignment:
|
||||
// Alignment
|
||||
// .center,
|
||||
// child: Obx(() {
|
||||
// return TextFormField(
|
||||
// enabled:
|
||||
// false,
|
||||
// controller: controller.onReDraw(
|
||||
// TextEditingController(
|
||||
// text:
|
||||
// controller.model.all_address),
|
||||
// (val) {
|
||||
// val.text =
|
||||
// controller.model.all_address ??
|
||||
// "";
|
||||
// }),
|
||||
// // autofocus: true,
|
||||
// obscureText:
|
||||
// false,
|
||||
// maxLines: 1,
|
||||
// textAlignVertical:
|
||||
// TextAlignVertical
|
||||
// .center, // 垂直居中
|
||||
// decoration: InputDecoration(
|
||||
// contentPadding: EdgeInsets.symmetric(
|
||||
// vertical:
|
||||
// 25.rpx,
|
||||
// horizontal:
|
||||
// 26.rpx,
|
||||
// ),
|
||||
// labelStyle: TextStyle(
|
||||
// fontFamily:
|
||||
// 'Readex Pro',
|
||||
// letterSpacing:
|
||||
// 0,
|
||||
// ),
|
||||
// hintStyle: TextStyle(
|
||||
// fontFamily:
|
||||
// 'Readex Pro',
|
||||
// letterSpacing:
|
||||
// 0,
|
||||
// ),
|
||||
// enabledBorder: UnderlineInputBorder(
|
||||
// borderSide:
|
||||
// const BorderSide(
|
||||
// color:
|
||||
// Color(0x00000000),
|
||||
// width:
|
||||
// 2,
|
||||
// ),
|
||||
// borderRadius:
|
||||
// BorderRadius.circular(8),
|
||||
// ),
|
||||
// disabledBorder: UnderlineInputBorder(
|
||||
// borderSide:
|
||||
// const BorderSide(
|
||||
// color:
|
||||
// Color(0x00000000),
|
||||
// width:
|
||||
// 0,
|
||||
// ),
|
||||
// borderRadius:
|
||||
// BorderRadius.circular(8),
|
||||
// ),
|
||||
// focusedBorder: UnderlineInputBorder(
|
||||
// borderSide:
|
||||
// const BorderSide(
|
||||
// color:
|
||||
// Color(0x00000000),
|
||||
// width:
|
||||
// 2,
|
||||
// ),
|
||||
// borderRadius:
|
||||
// BorderRadius.circular(8),
|
||||
// ),
|
||||
// errorBorder: UnderlineInputBorder(
|
||||
// borderSide:
|
||||
// const BorderSide(
|
||||
// color:
|
||||
// Color(0x00000000),
|
||||
// width:
|
||||
// 2,
|
||||
// ),
|
||||
// borderRadius:
|
||||
// BorderRadius.circular(8),
|
||||
// ),
|
||||
// focusedErrorBorder: UnderlineInputBorder(
|
||||
// borderSide:
|
||||
// const BorderSide(
|
||||
// color:
|
||||
// Color(0x00000000),
|
||||
// width:
|
||||
// 2,
|
||||
// ),
|
||||
// borderRadius:
|
||||
// BorderRadius.circular(8),
|
||||
// ),
|
||||
// suffixIcon: Transform.rotate(
|
||||
// angle:
|
||||
// 1.5708, // 90 度相当于 pi / 2 弧度
|
||||
// child:
|
||||
// Icon(
|
||||
// Icons.arrow_forward_ios,
|
||||
// color:
|
||||
// Colors.black,
|
||||
// size:
|
||||
// 26.rpx,
|
||||
// ),
|
||||
// )),
|
||||
// style:
|
||||
// TextStyle(
|
||||
// fontFamily:
|
||||
// 'Readex Pro',
|
||||
// letterSpacing:
|
||||
// 0,
|
||||
// color: Color(
|
||||
// 0xFF333333),
|
||||
// fontSize:
|
||||
// 26.rpx,
|
||||
// overflow:
|
||||
// TextOverflow
|
||||
// .ellipsis,
|
||||
// ),
|
||||
// );
|
||||
// })),
|
||||
|
||||
// ),
|
||||
// ),
|
||||
Expanded(
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
@@ -1087,7 +944,7 @@ class EditAddressPage extends GetView<AddressController>
|
||||
vertical:
|
||||
10.rpx,
|
||||
horizontal:
|
||||
26.rpx,
|
||||
35.rpx,
|
||||
),
|
||||
labelStyle:
|
||||
TextStyle(
|
||||
@@ -1163,6 +1020,9 @@ class EditAddressPage extends GetView<AddressController>
|
||||
fontSize:
|
||||
26.rpx,
|
||||
),
|
||||
// cursorColor:
|
||||
// Colors
|
||||
// .black,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user