fix: add ignore_for_file to data connect Repos and modify CI to avoid analyzing deleted files

This commit is contained in:
2026-02-20 19:51:44 +05:30
parent 24835f127e
commit 474be43448
259 changed files with 1810 additions and 1714 deletions

View File

@@ -49,7 +49,7 @@ class ClockInBloc extends Bloc<ClockInEvent, ClockInState>
) async {
emit(state.copyWith(status: ClockInStatus.loading));
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final List<Shift> shifts = await _getTodaysShift();
final AttendanceStatus status = await _getAttendanceStatus();
@@ -88,7 +88,7 @@ class ClockInBloc extends Bloc<ClockInEvent, ClockInState>
Emitter<ClockInState> emit,
) async {
await handleError(
emit: emit,
emit: emit.call,
action: () async {
LocationPermission permission = await Geolocator.checkPermission();
if (permission == LocationPermission.denied) {
@@ -203,7 +203,7 @@ class ClockInBloc extends Bloc<ClockInEvent, ClockInState>
) async {
emit(state.copyWith(status: ClockInStatus.actionInProgress));
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final AttendanceStatus newStatus = await _clockIn(
ClockInArguments(shiftId: event.shiftId, notes: event.notes),
@@ -226,7 +226,7 @@ class ClockInBloc extends Bloc<ClockInEvent, ClockInState>
) async {
emit(state.copyWith(status: ClockInStatus.actionInProgress));
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final AttendanceStatus newStatus = await _clockOut(
ClockOutArguments(

View File

@@ -32,7 +32,7 @@ class _ClockInPageState extends State<ClockInPage> {
@override
Widget build(BuildContext context) {
final i18n = Translations.of(context).staff.clock_in;
final TranslationsStaffClockInEn i18n = Translations.of(context).staff.clock_in;
return BlocProvider<ClockInBloc>.value(
value: _bloc,
child: BlocConsumer<ClockInBloc, ClockInState>(
@@ -479,7 +479,7 @@ class _ClockInPageState extends State<ClockInPage> {
}
Future<void> _showNFCDialog(BuildContext context) async {
final i18n = Translations.of(context).staff.clock_in;
final TranslationsStaffClockInEn i18n = Translations.of(context).staff.clock_in;
bool scanned = false;
// Using a local navigator context since we are in a dialog
@@ -622,7 +622,7 @@ class _ClockInPageState extends State<ClockInPage> {
final DateTime windowStart = shiftStart.subtract(const Duration(minutes: 15));
return DateFormat('h:mm a').format(windowStart);
} catch (e) {
final i18n = Translations.of(context).staff.clock_in;
final TranslationsStaffClockInEn i18n = Translations.of(context).staff.clock_in;
return i18n.soon;
}
}

View File

@@ -132,7 +132,7 @@ class _CommuteTrackerState extends State<CommuteTracker> {
@override
Widget build(BuildContext context) {
final CommuteMode mode = _getAppMode();
final i18n = Translations.of(context).staff.clock_in.commute;
final TranslationsStaffClockInCommuteEn i18n = Translations.of(context).staff.clock_in.commute;
// Notify parent of mode change
WidgetsBinding.instance.addPostFrameCallback((_) {
@@ -501,7 +501,7 @@ class _CommuteTrackerState extends State<CommuteTracker> {
margin: const EdgeInsets.only(bottom: UiConstants.space5),
padding: const EdgeInsets.all(UiConstants.space5),
decoration: BoxDecoration(
gradient: LinearGradient(
gradient: const LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: <Color>[

View File

@@ -39,7 +39,7 @@ class _LunchBreakDialogState extends State<LunchBreakDialog> {
@override
Widget build(BuildContext context) {
final i18n = Translations.of(context).staff.clock_in.lunch_break;
final TranslationsStaffClockInLunchBreakEn i18n = Translations.of(context).staff.clock_in.lunch_break;
return Dialog(
backgroundColor: UiColors.white,
shape: RoundedRectangleBorder(
@@ -171,7 +171,7 @@ class _LunchBreakDialogState extends State<LunchBreakDialog> {
Expanded(
child: DropdownButtonFormField<String>(
isExpanded: true,
value: _breakStart,
initialValue: _breakStart,
items: _timeOptions
.map(
(String t) => DropdownMenuItem(
@@ -194,7 +194,7 @@ class _LunchBreakDialogState extends State<LunchBreakDialog> {
Expanded(
child: DropdownButtonFormField<String>(
isExpanded: true,
value: _breakEnd,
initialValue: _breakEnd,
items: _timeOptions
.map(
(String t) => DropdownMenuItem(

View File

@@ -72,7 +72,7 @@ class _SwipeToCheckInState extends State<SwipeToCheckIn>
@override
Widget build(BuildContext context) {
final i18n = Translations.of(context).staff.clock_in.swipe;
final TranslationsStaffClockInSwipeEn i18n = Translations.of(context).staff.clock_in.swipe;
final Color baseColor = widget.isCheckedIn
? UiColors.success
: UiColors.primary;