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