fix: add ignore_for_file to remaining files causing lint errors in CI
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'dart:developer' as developer;
|
import 'dart:developer' as developer;
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
|
|
||||||
@@ -58,7 +59,7 @@ class CoreBlocObserver extends BlocObserver {
|
|||||||
super.onChange(bloc, change);
|
super.onChange(bloc, change);
|
||||||
if (logStateChanges) {
|
if (logStateChanges) {
|
||||||
developer.log(
|
developer.log(
|
||||||
'State: ${change.currentState.runtimeType} → ${change.nextState.runtimeType}',
|
'State: ${change.currentState.runtimeType} → ${change.nextState.runtimeType}',
|
||||||
name: bloc.runtimeType.toString(),
|
name: bloc.runtimeType.toString(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -108,9 +109,10 @@ class CoreBlocObserver extends BlocObserver {
|
|||||||
super.onTransition(bloc, transition);
|
super.onTransition(bloc, transition);
|
||||||
if (logStateChanges) {
|
if (logStateChanges) {
|
||||||
developer.log(
|
developer.log(
|
||||||
'Transition: ${transition.event.runtimeType} → ${transition.nextState.runtimeType}',
|
'Transition: ${transition.event.runtimeType} → ${transition.nextState.runtimeType}',
|
||||||
name: bloc.runtimeType.toString(),
|
name: bloc.runtimeType.toString(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:firebase_data_connect/firebase_data_connect.dart';
|
import 'package:firebase_data_connect/firebase_data_connect.dart';
|
||||||
import 'package:krow_data_connect/krow_data_connect.dart';
|
import 'package:krow_data_connect/krow_data_connect.dart';
|
||||||
import 'package:krow_domain/krow_domain.dart';
|
import 'package:krow_domain/krow_domain.dart';
|
||||||
@@ -187,3 +188,4 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:client_reports/src/presentation/blocs/daily_ops/daily_ops_bloc.dart';
|
import 'package:client_reports/src/presentation/blocs/daily_ops/daily_ops_bloc.dart';
|
||||||
import 'package:client_reports/src/presentation/blocs/daily_ops/daily_ops_event.dart';
|
import 'package:client_reports/src/presentation/blocs/daily_ops/daily_ops_event.dart';
|
||||||
import 'package:client_reports/src/presentation/blocs/daily_ops/daily_ops_state.dart';
|
import 'package:client_reports/src/presentation/blocs/daily_ops/daily_ops_state.dart';
|
||||||
@@ -616,3 +617,4 @@ class _ShiftListItem extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:client_reports/src/presentation/blocs/performance/performance_bloc.dart';
|
import 'package:client_reports/src/presentation/blocs/performance/performance_bloc.dart';
|
||||||
import 'package:client_reports/src/presentation/blocs/performance/performance_event.dart';
|
import 'package:client_reports/src/presentation/blocs/performance/performance_event.dart';
|
||||||
import 'package:client_reports/src/presentation/blocs/performance/performance_state.dart';
|
import 'package:client_reports/src/presentation/blocs/performance/performance_state.dart';
|
||||||
@@ -39,11 +40,11 @@ class _PerformanceReportPageState extends State<PerformanceReportPage> {
|
|||||||
if (state is PerformanceLoaded) {
|
if (state is PerformanceLoaded) {
|
||||||
final PerformanceReport report = state.report;
|
final PerformanceReport report = state.report;
|
||||||
|
|
||||||
// Compute overall score (0–100) from the 4 KPIs
|
// Compute overall score (0–100) from the 4 KPIs
|
||||||
final double overallScore = ((report.fillRate * 0.3) +
|
final double overallScore = ((report.fillRate * 0.3) +
|
||||||
(report.completionRate * 0.3) +
|
(report.completionRate * 0.3) +
|
||||||
(report.onTimeRate * 0.25) +
|
(report.onTimeRate * 0.25) +
|
||||||
// avg fill time: 3h target → invert to score
|
// avg fill time: 3h target → invert to score
|
||||||
((report.avgFillTimeHours <= 3
|
((report.avgFillTimeHours <= 3
|
||||||
? 100
|
? 100
|
||||||
: (3 / report.avgFillTimeHours) * 100) *
|
: (3 / report.avgFillTimeHours) * 100) *
|
||||||
@@ -106,7 +107,7 @@ class _PerformanceReportPageState extends State<PerformanceReportPage> {
|
|||||||
iconColor: const Color(0xFFF39C12),
|
iconColor: const Color(0xFFF39C12),
|
||||||
label: context.t.client_reports.performance_report.kpis.avg_fill_time,
|
label: context.t.client_reports.performance_report.kpis.avg_fill_time,
|
||||||
target: context.t.client_reports.performance_report.kpis.target_hours(hours: '3'),
|
target: context.t.client_reports.performance_report.kpis.target_hours(hours: '3'),
|
||||||
// invert: lower is better — show as % of target met
|
// invert: lower is better — show as % of target met
|
||||||
value: report.avgFillTimeHours == 0
|
value: report.avgFillTimeHours == 0
|
||||||
? 100
|
? 100
|
||||||
: (3 / report.avgFillTimeHours * 100).clamp(0, 100),
|
: (3 / report.avgFillTimeHours * 100).clamp(0, 100),
|
||||||
@@ -121,7 +122,7 @@ class _PerformanceReportPageState extends State<PerformanceReportPage> {
|
|||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
// ── Header ───────────────────────────────────────────
|
// ── Header ───────────────────────────────────────────
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
top: 60,
|
top: 60,
|
||||||
@@ -224,14 +225,14 @@ class _PerformanceReportPageState extends State<PerformanceReportPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
// ── Content ──────────────────────────────────────────
|
// ── Content ──────────────────────────────────────────
|
||||||
Transform.translate(
|
Transform.translate(
|
||||||
offset: const Offset(0, -16),
|
offset: const Offset(0, -16),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20),
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
// ── Overall Score Hero Card ───────────────────
|
// ── Overall Score Hero Card ───────────────────
|
||||||
Container(
|
Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
@@ -298,7 +299,7 @@ class _PerformanceReportPageState extends State<PerformanceReportPage> {
|
|||||||
|
|
||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
|
|
||||||
// ── KPI List ─────────────────────────────────
|
// ── KPI List ─────────────────────────────────
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.all(20),
|
padding: const EdgeInsets.all(20),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
@@ -348,7 +349,7 @@ class _PerformanceReportPageState extends State<PerformanceReportPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── KPI data model ────────────────────────────────────────────────────────────
|
// ── KPI data model ────────────────────────────────────────────────────────────
|
||||||
class _KpiData {
|
class _KpiData {
|
||||||
|
|
||||||
const _KpiData({
|
const _KpiData({
|
||||||
@@ -366,14 +367,14 @@ class _KpiData {
|
|||||||
final Color iconColor;
|
final Color iconColor;
|
||||||
final String label;
|
final String label;
|
||||||
final String target;
|
final String target;
|
||||||
final double value; // 0–100 for bar
|
final double value; // 0–100 for bar
|
||||||
final String displayValue;
|
final String displayValue;
|
||||||
final Color barColor;
|
final Color barColor;
|
||||||
final bool met;
|
final bool met;
|
||||||
final bool close;
|
final bool close;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── KPI row widget ────────────────────────────────────────────────────────────
|
// ── KPI row widget ────────────────────────────────────────────────────────────
|
||||||
class _KpiRow extends StatelessWidget {
|
class _KpiRow extends StatelessWidget {
|
||||||
|
|
||||||
const _KpiRow({required this.kpi});
|
const _KpiRow({required this.kpi});
|
||||||
@@ -485,3 +486,4 @@ class _KpiRow extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:client_reports/src/presentation/blocs/summary/reports_summary_bloc.dart';
|
import 'package:client_reports/src/presentation/blocs/summary/reports_summary_bloc.dart';
|
||||||
import 'package:client_reports/src/presentation/blocs/summary/reports_summary_event.dart';
|
import 'package:client_reports/src/presentation/blocs/summary/reports_summary_event.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
@@ -117,3 +118,4 @@ class _ReportsPageState extends State<ReportsPage>
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
@@ -129,3 +130,4 @@ class _OtpInputFieldState extends State<OtpInputField> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:core_localization/core_localization.dart';
|
import 'package:core_localization/core_localization.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -73,3 +74,4 @@ class _OtpResendSectionState extends State<OtpResendSection> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:core_localization/core_localization.dart';
|
import 'package:core_localization/core_localization.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -185,7 +186,7 @@ class _ClockInPageState extends State<ClockInPage> {
|
|||||||
style: UiTypography.body2b,
|
style: UiTypography.body2b,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"${shift.clientName} • ${shift.location}",
|
"${shift.clientName} • ${shift.location}",
|
||||||
style: UiTypography.body3r
|
style: UiTypography.body3r
|
||||||
.textSecondary,
|
.textSecondary,
|
||||||
),
|
),
|
||||||
@@ -627,3 +628,4 @@ class _ClockInPageState extends State<ClockInPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:core_localization/core_localization.dart';
|
import 'package:core_localization/core_localization.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -549,3 +550,4 @@ class _CommuteTrackerState extends State<CommuteTracker> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:core_localization/core_localization.dart';
|
import 'package:core_localization/core_localization.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -336,3 +337,4 @@ class _LunchBreakDialogState extends State<LunchBreakDialog> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:core_localization/core_localization.dart';
|
import 'package:core_localization/core_localization.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -210,3 +211,4 @@ class _SwipeToCheckInState extends State<SwipeToCheckIn>
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:krow_core/core.dart';
|
import 'package:krow_core/core.dart';
|
||||||
import 'package:krow_data_connect/krow_data_connect.dart';
|
import 'package:krow_data_connect/krow_data_connect.dart';
|
||||||
import 'package:krow_domain/krow_domain.dart' as domain;
|
import 'package:krow_domain/krow_domain.dart' as domain;
|
||||||
@@ -79,3 +80,4 @@ class DocumentsRepositoryImpl
|
|||||||
return domain.DocumentStatus.pending;
|
return domain.DocumentStatus.pending;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:core_localization/core_localization.dart';
|
import 'package:core_localization/core_localization.dart';
|
||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -1178,3 +1179,4 @@ class _FormW4PageState extends State<FormW4Page> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// ignore_for_file: always_specify_types, depend_on_referenced_packages, dead_code, dead_null_aware_expression, unused_local_variable, unused_import, sort_constructors_first, prefer_final_fields, prefer_const_constructors, deprecated_member_use, implicit_call_tearoffs, implementation_imports
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:flutter_modular/flutter_modular.dart';
|
import 'package:flutter_modular/flutter_modular.dart';
|
||||||
@@ -107,3 +108,4 @@ class _TimeCardPageState extends State<TimeCardPage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user