feat: Pass endDate to shift details screen and refine its display with updated spacing and a direct label.

This commit is contained in:
Achintha Isuru
2026-02-23 13:52:40 -05:00
parent 659b5812b0
commit 98c0b8a644
2 changed files with 4 additions and 3 deletions

View File

@@ -92,12 +92,12 @@ class ShiftDateTimeSection extends StatelessWidget {
],
),
if (endDate != null) ...[
const SizedBox(height: UiConstants.space4),
const SizedBox(height: UiConstants.space6),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
shiftDateLabel,
'SHIFT END DATE',
style: UiTypography.titleUppercase4b.textSecondary,
),
const SizedBox(height: UiConstants.space2),
@@ -118,7 +118,7 @@ class ShiftDateTimeSection extends StatelessWidget {
],
),
],
const SizedBox(height: UiConstants.space4),
const SizedBox(height: UiConstants.space6),
Row(
children: [
Expanded(child: _buildTimeBox(clockInLabel, startTime)),

View File

@@ -210,6 +210,7 @@ class _FindShiftsTabState extends State<FindShiftsTab> {
location: first.location,
locationAddress: first.locationAddress,
date: first.date,
endDate: first.endDate,
startTime: first.startTime,
endTime: first.endTime,
createdDate: first.createdDate,