diff --git a/analysis_options.yaml b/analysis_options.yaml index ce0711f..20b344f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -9,6 +9,10 @@ # packages, and plugins designed to encourage good coding practices. include: package:flutter_lints/flutter.yaml +analyzer: + exclude: + - "lib/l10n/**" + 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/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.';