diff --git a/lib/pages/home/tap/item_list_widget.dart b/lib/pages/home/tap/item_list_widget.dart index 108b006..0a4d5bc 100644 --- a/lib/pages/home/tap/item_list_widget.dart +++ b/lib/pages/home/tap/item_list_widget.dart @@ -28,6 +28,7 @@ class ItemListWidget { ValueChanged? onChanged, ValueChanged? 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, // 添加输入格式化器(如果是数字输入) diff --git a/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart index 7b5fad3..bd243ff 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dh_work/aqcs_work_detail/hotwork_safe_func_sure.dart @@ -380,6 +380,7 @@ if (reasonText.isEmpty) { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart index c06baf1..554264e 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dl_work/aqcs_work_detail/cutroad_safe_func_sure.dart @@ -433,6 +433,7 @@ if (reasonText.isEmpty) { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart index 2d8290c..44c2a5f 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dt_work/aqcs_work_detail/breakground_safe_func_sure.dart @@ -392,6 +392,7 @@ if (reasonText.isEmpty) { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart index c41b2c1..082ac7b 100644 --- a/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/dz_work/aqcs_work_detail/hoistwork_safe_func_sure.dart @@ -391,6 +391,7 @@ if (reasonText.isEmpty) { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart index 5c60208..aa763b9 100644 --- a/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/gc_work/aqcs_work_detail/highwork_safe_func_sure.dart @@ -380,6 +380,7 @@ if (reasonText.isEmpty) { label: '其他安全措施:', isEditable: true, + showMaxLength:true, hintText: '请输入其他安全措施', controller: _otherController, ), diff --git a/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart index a1b95db..a4e63b6 100644 --- a/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/lsyd_work/aqcs_work_detail/electricity_safe_func_sure.dart @@ -381,6 +381,7 @@ if (reasonText.isEmpty) { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart index a1a7053..5e6a44f 100644 --- a/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/mbcd_work/aqcs_work_detail/blindboard_safe_func_sure.dart @@ -394,6 +394,7 @@ if (reasonText.isEmpty) { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController, diff --git a/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart b/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart index 00d2659..5692d93 100644 --- a/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart +++ b/lib/pages/home/tap/tabList/special_wrok/sxkj_work/aqcs_work_detail/spacework_safe_func_sure.dart @@ -379,6 +379,7 @@ if (reasonText.isEmpty) { ItemListWidget.singleLineTitleText( label: '其他安全措施:', + showMaxLength:true, isEditable: true, hintText: '请输入其他安全措施', controller: _otherController,