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) ...[
|
||||
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)),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user