feat:更新提示文字信息
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user