Full width task editor
This commit is contained in:
parent
3b957c0d18
commit
78b4f54264
|
|
@ -176,7 +176,6 @@ abstract class TaskTime implements Built<TaskTime, TaskTimeBuilder> {
|
||||||
}
|
}
|
||||||
|
|
||||||
TaskTime copyWithStartDateTime(DateTime dateTime) {
|
TaskTime copyWithStartDateTime(DateTime dateTime) {
|
||||||
print('## copyWithStartDateTime: $dateTime ${dateTime.isUtc}');
|
|
||||||
return TaskTime(
|
return TaskTime(
|
||||||
startDate: dateTime,
|
startDate: dateTime,
|
||||||
endDate: endDate,
|
endDate: endDate,
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,7 @@ class TimeEditDetailsState extends State<TimeEditDetails> {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
DatePicker(
|
DatePicker(
|
||||||
key: ValueKey('__date_${_startUpdatedAt}__'),
|
key: ValueKey('__date_${_startUpdatedAt}__'),
|
||||||
|
labelText: localization.date,
|
||||||
selectedDate: _taskTime.startDate == null
|
selectedDate: _taskTime.startDate == null
|
||||||
? null
|
? null
|
||||||
: convertDateTimeToSqlDate(_taskTime.startDate.toLocal()),
|
: convertDateTimeToSqlDate(_taskTime.startDate.toLocal()),
|
||||||
|
|
@ -134,6 +135,7 @@ class TimeEditDetailsState extends State<TimeEditDetails> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
TimePicker(
|
TimePicker(
|
||||||
|
labelText: localization.startTime,
|
||||||
selectedDate: _taskTime.startDate,
|
selectedDate: _taskTime.startDate,
|
||||||
selectedDateTime: _taskTime.startDate,
|
selectedDateTime: _taskTime.startDate,
|
||||||
onSelected: (timeOfDay) {
|
onSelected: (timeOfDay) {
|
||||||
|
|
@ -146,6 +148,7 @@ class TimeEditDetailsState extends State<TimeEditDetails> {
|
||||||
),
|
),
|
||||||
TimePicker(
|
TimePicker(
|
||||||
key: ValueKey('__end_time_${_durationUpdateAt}__'),
|
key: ValueKey('__end_time_${_durationUpdateAt}__'),
|
||||||
|
labelText: localization.endTime,
|
||||||
selectedDate: _taskTime.startDate,
|
selectedDate: _taskTime.startDate,
|
||||||
selectedDateTime: _taskTime.endDate,
|
selectedDateTime: _taskTime.endDate,
|
||||||
isEndTime: true,
|
isEndTime: true,
|
||||||
|
|
@ -160,6 +163,7 @@ class TimeEditDetailsState extends State<TimeEditDetails> {
|
||||||
DurationPicker(
|
DurationPicker(
|
||||||
key: ValueKey(
|
key: ValueKey(
|
||||||
'__duration_${_startUpdatedAt}_${_endUpdatedAt}_${_dateUpdatedAt}__'),
|
'__duration_${_startUpdatedAt}_${_endUpdatedAt}_${_dateUpdatedAt}__'),
|
||||||
|
labelText: localization.duration,
|
||||||
onSelected: (Duration duration) {
|
onSelected: (Duration duration) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_taskTime = _taskTime.copyWithDuration(duration);
|
_taskTime = _taskTime.copyWithDuration(duration);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue