feat: Pass endDate to shift details screen and refine its display with updated spacing and a direct label.
This commit is contained in:
@@ -92,12 +92,12 @@ class ShiftDateTimeSection extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (endDate != null) ...[
|
if (endDate != null) ...[
|
||||||
const SizedBox(height: UiConstants.space4),
|
const SizedBox(height: UiConstants.space6),
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
shiftDateLabel,
|
'SHIFT END DATE',
|
||||||
style: UiTypography.titleUppercase4b.textSecondary,
|
style: UiTypography.titleUppercase4b.textSecondary,
|
||||||
),
|
),
|
||||||
const SizedBox(height: UiConstants.space2),
|
const SizedBox(height: UiConstants.space2),
|
||||||
@@ -118,7 +118,7 @@ class ShiftDateTimeSection extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
const SizedBox(height: UiConstants.space4),
|
const SizedBox(height: UiConstants.space6),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: _buildTimeBox(clockInLabel, startTime)),
|
Expanded(child: _buildTimeBox(clockInLabel, startTime)),
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ class _FindShiftsTabState extends State<FindShiftsTab> {
|
|||||||
location: first.location,
|
location: first.location,
|
||||||
locationAddress: first.locationAddress,
|
locationAddress: first.locationAddress,
|
||||||
date: first.date,
|
date: first.date,
|
||||||
|
endDate: first.endDate,
|
||||||
startTime: first.startTime,
|
startTime: first.startTime,
|
||||||
endTime: first.endTime,
|
endTime: first.endTime,
|
||||||
createdDate: first.createdDate,
|
createdDate: first.createdDate,
|
||||||
|
|||||||
Reference in New Issue
Block a user