2025.9.18 增加120字限制

main
xufei 2025-09-18 09:58:02 +08:00
parent 76d0fdbd16
commit 1c026d31f1
9 changed files with 10 additions and 0 deletions

View File

@ -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,
//

View File

@ -373,6 +373,7 @@ class _HotworkSafeFuncSureState extends State<HotworkSafeFuncSure> {
ItemListWidget.singleLineTitleText(
label: '其他安全措施:',
showMaxLength:true,
isEditable: true,
hintText: '请输入其他安全措施',
controller: _otherController,

View File

@ -426,6 +426,7 @@ class _CutroadSafeFuncSureState extends State<CutroadSafeFuncSure> {
ItemListWidget.singleLineTitleText(
label: '其他安全措施:',
showMaxLength:true,
isEditable: true,
hintText: '请输入其他安全措施',
controller: _otherController,

View File

@ -385,6 +385,7 @@ class _BreakgroundSafeFuncSureState extends State<BreakgroundSafeFuncSure> {
ItemListWidget.singleLineTitleText(
label: '其他安全措施:',
showMaxLength:true,
isEditable: true,
hintText: '请输入其他安全措施',
controller: _otherController,

View File

@ -384,6 +384,7 @@ class _HoistworkSafeFuncSureState extends State<HoistworkSafeFuncSure> {
ItemListWidget.singleLineTitleText(
label: '其他安全措施:',
showMaxLength:true,
isEditable: true,
hintText: '请输入其他安全措施',
controller: _otherController,

View File

@ -373,6 +373,7 @@ class _HighworkSafeFuncSureState extends State<HighworkSafeFuncSure> {
label: '其他安全措施:',
isEditable: true,
showMaxLength:true,
hintText: '请输入其他安全措施',
controller: _otherController,
),

View File

@ -374,6 +374,7 @@ class _ElectricitySafeFuncSureState extends State<ElectricitySafeFuncSure> {
ItemListWidget.singleLineTitleText(
label: '其他安全措施:',
showMaxLength:true,
isEditable: true,
hintText: '请输入其他安全措施',
controller: _otherController,

View File

@ -387,6 +387,7 @@ class _BlindboardSafeFuncSureState extends State<BlindboardSafeFuncSure> {
ItemListWidget.singleLineTitleText(
label: '其他安全措施:',
showMaxLength:true,
isEditable: true,
hintText: '请输入其他安全措施',
controller: _otherController,

View File

@ -372,6 +372,7 @@ class _SpaceworkSafeFuncSureState extends State<SpaceworkSafeFuncSure> {
ItemListWidget.singleLineTitleText(
label: '其他安全措施:',
showMaxLength:true,
isEditable: true,
hintText: '请输入其他安全措施',
controller: _otherController,