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

@@ -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(