diff --git a/.github/workflows/health_dashboard.yml b/.github/workflows/health_dashboard.yml index 9920871..42669f6 100644 --- a/.github/workflows/health_dashboard.yml +++ b/.github/workflows/health_dashboard.yml @@ -25,7 +25,7 @@ jobs: name: Generate & Deploy Dashboard runs-on: ubuntu-latest environment: - name: github-pages + name: ${{ github.event_name != 'pull_request' && 'github-pages' || '' }} url: ${{ steps.deployment.outputs.page_url }} steps: diff --git a/analysis_options.yaml b/analysis_options.yaml index ce0711f..691b1bc 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -9,6 +9,12 @@ # packages, and plugins designed to encourage good coding practices. include: package:flutter_lints/flutter.yaml +analyzer: + exclude: + - "lib/l10n/**" + errors: + experimental_member_use: ignore + linter: # The lint rules applied to this project can be customized in the # section below to disable rules from the `package:flutter_lints/flutter.yaml` diff --git a/l10n.yaml b/l10n.yaml index 15338f2..360fe44 100644 --- a/l10n.yaml +++ b/l10n.yaml @@ -1,3 +1,4 @@ arb-dir: lib/l10n template-arb-file: app_en.arb output-localization-file: app_localizations.dart +header: "" diff --git a/lib/services/emergency_beacon_service.dart b/lib/services/emergency_beacon_service.dart index b71d4e1..b090ff5 100644 --- a/lib/services/emergency_beacon_service.dart +++ b/lib/services/emergency_beacon_service.dart @@ -1,4 +1,3 @@ -// ignore_for_file: experimental_member_use import 'dart:async'; import 'dart:math'; import 'package:flutter/foundation.dart'; diff --git a/lib/services/family_circle_service.dart b/lib/services/family_circle_service.dart index 8ab87c7..a920e04 100644 --- a/lib/services/family_circle_service.dart +++ b/lib/services/family_circle_service.dart @@ -165,13 +165,9 @@ class FamilyCircleService extends StateNotifier { // Ref is currently unused but kept in the constructor so future work // (FCM push, profile sync) can read other providers without changing the // call-site contract. - _ref = ref; _bootstrap(); } - // ignore: unused_field - Ref? _ref; - RealtimeChannel? _peerChannel; Timer? _publishTimer; StreamSubscription? _positionSub; diff --git a/lib/services/webrtc_voice_call_service.dart b/lib/services/webrtc_voice_call_service.dart index 573d39f..a0bcc2e 100644 --- a/lib/services/webrtc_voice_call_service.dart +++ b/lib/services/webrtc_voice_call_service.dart @@ -92,13 +92,10 @@ class VoiceCallState { /// behind symmetric NAT may fail. Acceptable for hackathon demo on WiFi / /// 4G with the same operator; production should add a Coturn TURN server. class WebRtcVoiceCallService extends StateNotifier { - WebRtcVoiceCallService(this._ref) : super(const VoiceCallState()) { + WebRtcVoiceCallService(Ref ref) : super(const VoiceCallState()) { _bootstrap(); } - // ignore: unused_field - final Ref _ref; - RTCPeerConnection? _pc; MediaStream? _localStream; RealtimeChannel? _ringChannel; diff --git a/lib/ui/first_aid_screen.dart b/lib/ui/first_aid_screen.dart index e0fe1e3..b28fcd0 100644 --- a/lib/ui/first_aid_screen.dart +++ b/lib/ui/first_aid_screen.dart @@ -81,8 +81,7 @@ class _FirstAidScreenState extends ConsumerState { _result = res; }); // Side-channel: keep FirstAidStore primed (used elsewhere) — best-effort. - // ignore: discarded_futures - FirstAidStore.getVerifiedAdvice(query); + unawaited(FirstAidStore.getVerifiedAdvice(query)); } on Object { setState(() { _error = 'Could not load first-aid guidance on this device.';