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) ...[ 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)),

View File

@@ -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,