fix(clock_in): restore early check-in banner logic for active shifts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user