@@ -68,12 +68,21 @@ class TaskcDetailsView extends GetView<TaskcDetailsController> {
6868 ),
6969 // Start / Wait: editable date pickers for replica tasks, read-only otherwise
7070 if (controller.isReplicaTask) ...[
71- _buildDatePickerDetail (
72- context,
73- '${SentenceManager (currentLanguage : AppSettings .selectedLanguage ).sentences .detailPageStart }:' ,
74- controller.start.value,
75- () => controller.pickDateTime (controller.start),
76- ),
71+ controller.start.value == '-'
72+ ? _buildDatePickerDetail (
73+ context,
74+ '${SentenceManager (currentLanguage : AppSettings .selectedLanguage ).sentences .detailPageStart }:' ,
75+ controller.start.value,
76+ () => controller.updateField (
77+ controller.start,
78+ controller.formatDate (DateTime .now ()),
79+ ),
80+ )
81+ : _buildDetail (
82+ context,
83+ '${SentenceManager (currentLanguage : AppSettings .selectedLanguage ).sentences .detailPageStart }:' ,
84+ controller.start.value,
85+ disabled: true ),
7786 _buildDatePickerDetail (
7887 context,
7988 '${SentenceManager (currentLanguage : AppSettings .selectedLanguage ).sentences .detailPageWait }:' ,
@@ -138,11 +147,11 @@ class TaskcDetailsView extends GetView<TaskcDetailsController> {
138147
139148 // Modified is available for both; show it for both types
140149 _buildDetail (
141- context,
142- '${SentenceManager (currentLanguage : AppSettings .selectedLanguage ).sentences .detailPageModified }:' ,
143- controller.formatDate (
144- controller.initialTaskModifiedForFormatting ()),
145- ),
150+ context,
151+ '${SentenceManager (currentLanguage : AppSettings .selectedLanguage ).sentences .detailPageModified }:' ,
152+ controller.formatDate (
153+ controller.initialTaskModifiedForFormatting ()),
154+ disabled : true ),
146155 ],
147156 ),
148157 ),
@@ -193,7 +202,8 @@ class TaskcDetailsView extends GetView<TaskcDetailsController> {
193202 );
194203 }
195204
196- Widget _buildDetail (BuildContext context, String label, String value) {
205+ Widget _buildDetail (BuildContext context, String label, String value,
206+ {bool disabled = false }) {
197207 TaskwarriorColorTheme tColors =
198208 Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
199209 return Container (
@@ -220,7 +230,9 @@ class TaskcDetailsView extends GetView<TaskcDetailsController> {
220230 style: TextStyle (
221231 fontWeight: FontWeight .bold,
222232 fontSize: 18 ,
223- color: tColors.primaryTextColor,
233+ color: disabled
234+ ? tColors.primaryDisabledTextColor
235+ : tColors.primaryTextColor,
224236 ),
225237 ),
226238 const SizedBox (width: 8 ),
0 commit comments