更新
This commit is contained in:
@@ -265,34 +265,108 @@ class _RepairModelWidgetState extends State<RepairModelWidget> {
|
||||
].divide(SizedBox(width: 24.rpx)),
|
||||
),
|
||||
),
|
||||
// Container(
|
||||
// width: double.infinity,
|
||||
// // height: 151.rpx,
|
||||
// height: 200.rpx,
|
||||
// decoration: BoxDecoration(
|
||||
// color: themeController.currentColor.sc15,
|
||||
// borderRadius: BorderRadius.circular(20.rpx),
|
||||
// ),
|
||||
// child: Container(
|
||||
// width: 200.rpx,
|
||||
// child: TextFormField(
|
||||
// controller: repairController.onReDraw(
|
||||
// TextEditingController(text: widget.model['issue']),
|
||||
// (textEditingController) {
|
||||
// textEditingController.text = widget.model['issue'];
|
||||
// }),
|
||||
// onChanged: (value) {
|
||||
// widget.model['issue'] = value;
|
||||
// },
|
||||
// maxLines: null, // 👈 支持无限行
|
||||
// // controller: TextEditingController(),
|
||||
// autofocus: false,
|
||||
// obscureText: false,
|
||||
// maxLength: 60,
|
||||
// decoration: InputDecoration(
|
||||
// isDense: true,
|
||||
// labelStyle: TextStyle(
|
||||
// letterSpacing: 0.0,
|
||||
// ),
|
||||
// hintText: '问题描述'.tr,
|
||||
// hintStyle: TextStyle(
|
||||
// fontSize: 26.rpx,
|
||||
// letterSpacing: 0.0,
|
||||
// color: themeController.currentColor.sc4,
|
||||
// ),
|
||||
// enabledBorder: OutlineInputBorder(
|
||||
// borderSide: BorderSide(
|
||||
// color: Color(0x00000000),
|
||||
// width: 1,
|
||||
// ),
|
||||
// borderRadius: BorderRadius.circular(8.rpx),
|
||||
// ),
|
||||
// focusedBorder: OutlineInputBorder(
|
||||
// borderSide: BorderSide(
|
||||
// color: Color(0x00000000),
|
||||
// width: 1,
|
||||
// ),
|
||||
// borderRadius: BorderRadius.circular(8.rpx),
|
||||
// ),
|
||||
// errorBorder: OutlineInputBorder(
|
||||
// borderSide: BorderSide(
|
||||
// //
|
||||
// width: 1,
|
||||
// ),
|
||||
// borderRadius: BorderRadius.circular(8.rpx),
|
||||
// ),
|
||||
// focusedErrorBorder: OutlineInputBorder(
|
||||
// borderSide: BorderSide(
|
||||
// //
|
||||
// width: 1,
|
||||
// ),
|
||||
// borderRadius: BorderRadius.circular(8.rpx),
|
||||
// ),
|
||||
// filled: false,
|
||||
// contentPadding: EdgeInsets.symmetric(
|
||||
// vertical: 20.rpx, horizontal: 20.rpx),
|
||||
// ),
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().normal_text_fontSize,
|
||||
// ),
|
||||
// cursorColor: themeController.currentColor.sc3,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 151.rpx,
|
||||
height: 170.rpx,
|
||||
decoration: BoxDecoration(
|
||||
color: themeController.currentColor.sc15,
|
||||
borderRadius: BorderRadius.circular(20.rpx),
|
||||
),
|
||||
child: Container(
|
||||
width: 200.rpx,
|
||||
child: Padding(
|
||||
// 👇 给输入框整体加点内边距
|
||||
padding: EdgeInsets.only(bottom: 10.rpx, right: 10.rpx),
|
||||
child: TextFormField(
|
||||
controller: repairController.onReDraw(
|
||||
TextEditingController(text: widget.model['issue']),
|
||||
(textEditingController) {
|
||||
textEditingController.text = widget.model['issue'];
|
||||
}),
|
||||
TextEditingController(text: widget.model['issue']),
|
||||
(textEditingController) {
|
||||
textEditingController.text = widget.model['issue'];
|
||||
},
|
||||
),
|
||||
onChanged: (value) {
|
||||
widget.model['issue'] = value;
|
||||
},
|
||||
maxLines: null, // 👈 支持无限行
|
||||
// controller: TextEditingController(),
|
||||
maxLines: null,
|
||||
autofocus: false,
|
||||
obscureText: false,
|
||||
maxLength: 60,
|
||||
decoration: InputDecoration(
|
||||
isDense: true,
|
||||
labelStyle: TextStyle(
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
hintText: '问题描述'.tr,
|
||||
hintStyle: TextStyle(
|
||||
fontSize: 26.rpx,
|
||||
@@ -300,36 +374,28 @@ class _RepairModelWidgetState extends State<RepairModelWidget> {
|
||||
color: themeController.currentColor.sc4,
|
||||
),
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 1,
|
||||
),
|
||||
borderSide:
|
||||
BorderSide(color: Colors.transparent, width: 1),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 1,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
errorBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
//
|
||||
width: 1,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
focusedErrorBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
//
|
||||
width: 1,
|
||||
),
|
||||
borderSide:
|
||||
BorderSide(color: Colors.transparent, width: 1),
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
),
|
||||
filled: false,
|
||||
contentPadding: EdgeInsets.symmetric(
|
||||
vertical: 20.rpx, horizontal: 20.rpx),
|
||||
|
||||
// 👇 调整输入区域与计数器的间距
|
||||
contentPadding:
|
||||
EdgeInsets.fromLTRB(20.rpx, 20.rpx, 20.rpx, 40.rpx),
|
||||
|
||||
// 👇 调整计数器样式和位置(上浮一点,不贴边)
|
||||
counterStyle: TextStyle(
|
||||
height: 1.2, // 控制计数器与下边的距离
|
||||
fontSize: 22.rpx,
|
||||
color: themeController.currentColor.sc4,
|
||||
),
|
||||
alignLabelWithHint: true,
|
||||
),
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
@@ -339,6 +405,7 @@ class _RepairModelWidgetState extends State<RepairModelWidget> {
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
ClickableContainer(
|
||||
backgroundColor: themeController.currentColor.sc15,
|
||||
highlightColor: themeController.currentColor.sc21,
|
||||
|
||||
Reference in New Issue
Block a user