feat:更新提示文字信息

This commit is contained in:
2025-11-21 15:03:00 +08:00
parent f133e5ce13
commit 538151ca88
2 changed files with 5 additions and 14 deletions

View File

@@ -148,8 +148,7 @@ class _CalendarFormState extends State<CalendarForm> {
});
},
decoration: InputDecoration(
labelText:
startTime == null ? '选择开始时间' : '开始时间: ${formatTime(startTime)}',
labelText: startTime == null ? '选择开始时间' : '开始时间: ',
labelStyle: TextStyle(color: Colors.grey),
prefixIcon: Icon(Icons.calendar_month, color: Colors.purple),
border: buildFormBoard(),
@@ -197,7 +196,7 @@ class _CalendarFormState extends State<CalendarForm> {
});
},
decoration: InputDecoration(
labelText: endTime == null ? '选择结束时间' : '结束时间: ${formatTime(endTime)}',
labelText: endTime == null ? '选择结束时间' : '结束时间: ',
labelStyle: TextStyle(color: Colors.grey),
prefixIcon: Icon(Icons.calendar_month, color: Colors.purple),
border: buildFormBoard(),
@@ -245,10 +244,7 @@ class _CalendarFormState extends State<CalendarForm> {
});
},
decoration: InputDecoration(
labelText:
scheduledTime == null
? '选择提醒时间'
: '提醒时间: ${formatTime(scheduledTime)}',
labelText: scheduledTime == null ? '选择提醒时间' : '提醒时间: ',
labelStyle: TextStyle(color: Colors.grey),
prefixIcon: Icon(Icons.calendar_month, color: Colors.purple),
border: buildFormBoard(),

View File

@@ -190,10 +190,7 @@ class _TodoFormState extends State<TodoForm> {
});
},
decoration: InputDecoration(
labelText:
provider.formItem.dueDate == null
? '选择截止日期'
: '截止日期: ${DateFormat('yyyy-MM-dd').format(provider.formItem.dueDate!)}',
labelText: provider.formItem.dueDate == null ? '选择截止日期' : '截止日期: ',
labelStyle: TextStyle(color: Colors.grey),
prefixIcon: Icon(Icons.calendar_month, color: Colors.purple),
border: OutlineInputBorder(
@@ -253,9 +250,7 @@ class _TodoFormState extends State<TodoForm> {
},
decoration: InputDecoration(
labelText:
provider.formItem.scheduledTime == null
? '选择提醒时间'
: '提醒时间: ${DateFormat('yyyy-MM-dd HH:mm:ss').format(provider.formItem.scheduledTime!)}',
provider.formItem.scheduledTime == null ? '选择提醒时间' : '提醒时间: ',
labelStyle: TextStyle(color: Colors.grey),
prefixIcon: Icon(Icons.calendar_month, color: Colors.purple),
border: OutlineInputBorder(