Merge remote-tracking branch 'origin/main'
commit
a70c6a7336
|
@ -28,6 +28,7 @@ class ItemListWidget {
|
|||
ValueChanged<String>? onChanged,
|
||||
ValueChanged<String>? onFieldSubmitted,
|
||||
int maxLines = 5,
|
||||
bool showMaxLength = false,
|
||||
|
||||
// 新增参数:数字输入控制
|
||||
bool isNumericInput = false, // 是否为数字输入
|
||||
|
@ -75,6 +76,7 @@ class ItemListWidget {
|
|||
onChanged: onChanged,
|
||||
onSubmitted: onFieldSubmitted,
|
||||
keyboardType: actualKeyboardType,
|
||||
maxLength: showMaxLength?120:null,
|
||||
style: TextStyle(fontSize: fontSize),
|
||||
maxLines: 1,
|
||||
// 添加输入格式化器(如果是数字输入)
|
||||
|
|
|
@ -380,6 +380,7 @@ if (reasonText.isEmpty) {
|
|||
ItemListWidget.singleLineTitleText(
|
||||
|
||||
label: '其他安全措施:',
|
||||
showMaxLength:true,
|
||||
isEditable: true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
|
|
|
@ -433,6 +433,7 @@ if (reasonText.isEmpty) {
|
|||
ItemListWidget.singleLineTitleText(
|
||||
|
||||
label: '其他安全措施:',
|
||||
showMaxLength:true,
|
||||
isEditable: true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
|
|
|
@ -392,6 +392,7 @@ if (reasonText.isEmpty) {
|
|||
ItemListWidget.singleLineTitleText(
|
||||
|
||||
label: '其他安全措施:',
|
||||
showMaxLength:true,
|
||||
isEditable: true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
|
|
|
@ -391,6 +391,7 @@ if (reasonText.isEmpty) {
|
|||
ItemListWidget.singleLineTitleText(
|
||||
|
||||
label: '其他安全措施:',
|
||||
showMaxLength:true,
|
||||
isEditable: true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
|
|
|
@ -380,6 +380,7 @@ if (reasonText.isEmpty) {
|
|||
|
||||
label: '其他安全措施:',
|
||||
isEditable: true,
|
||||
showMaxLength:true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
),
|
||||
|
|
|
@ -381,6 +381,7 @@ if (reasonText.isEmpty) {
|
|||
ItemListWidget.singleLineTitleText(
|
||||
|
||||
label: '其他安全措施:',
|
||||
showMaxLength:true,
|
||||
isEditable: true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
|
|
|
@ -394,6 +394,7 @@ if (reasonText.isEmpty) {
|
|||
ItemListWidget.singleLineTitleText(
|
||||
|
||||
label: '其他安全措施:',
|
||||
showMaxLength:true,
|
||||
isEditable: true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
|
|
|
@ -379,6 +379,7 @@ if (reasonText.isEmpty) {
|
|||
ItemListWidget.singleLineTitleText(
|
||||
|
||||
label: '其他安全措施:',
|
||||
showMaxLength:true,
|
||||
isEditable: true,
|
||||
hintText: '请输入其他安全措施',
|
||||
controller: _otherController,
|
||||
|
|
Loading…
Reference in New Issue