fix(clock_in): restore early check-in banner logic for active shifts

This commit is contained in:
Achintha Isuru
2026-03-14 14:30:28 -04:00
parent 3478436227
commit e3f7e1ac3e

View File

@@ -105,21 +105,21 @@ class ClockInActionSection extends StatelessWidget {
/// Builds the action widget for an active (not completed) shift.
Widget _buildActiveShiftAction(BuildContext context) {
// if (!isCheckedIn && !ClockInHelpers.isCheckInAllowed(selectedShift!)) {
// return Column(
// mainAxisSize: MainAxisSize.min,
// children: <Widget>[
// const GeofenceStatusBanner(),
// const SizedBox(height: UiConstants.space3),
// EarlyCheckInBanner(
// availabilityTime: ClockInHelpers.getCheckInAvailabilityTime(
// selectedShift!,
// context,
// ),
// ),
// ],
// );
// }
if (!isCheckedIn && !ClockInHelpers.isCheckInAllowed(selectedShift!)) {
return Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const GeofenceStatusBanner(),
const SizedBox(height: UiConstants.space3),
EarlyCheckInBanner(
availabilityTime: ClockInHelpers.getCheckInAvailabilityTime(
selectedShift!,
context,
),
),
],
);
}
return BlocBuilder<GeofenceBloc, GeofenceState>(
builder: (BuildContext context, GeofenceState geofenceState) {