diff --git a/analysis_options.yaml b/analysis_options.yaml index ce0711f..581c333 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: + errors: + experimental_member_use: ignore + 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/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.'; diff --git a/pubspec.lock b/pubspec.lock index 4689694..060f56a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1249,10 +1249,10 @@ packages: dependency: transitive description: name: matcher - sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 + sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6" url: "https://pub.dev" source: hosted - version: "0.12.19" + version: "0.12.18" material_color_utilities: dependency: transitive description: @@ -1265,10 +1265,10 @@ packages: dependency: transitive description: name: meta - sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" + sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.17.0" mgrs_dart: dependency: transitive description: @@ -1878,10 +1878,10 @@ packages: dependency: transitive description: name: test_api - sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e" + sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636" url: "https://pub.dev" source: hosted - version: "0.7.11" + version: "0.7.9" timezone: dependency: transitive description: @@ -1894,10 +1894,10 @@ packages: dependency: "direct main" description: name: torch_light - sha256: "6a2659cf413d11b838540d15f2a18ead0e7736250cecdacb153cff654beb5c4a" + sha256: a1397443a375c6991151547cb77361085df6cf8aa59999292e683db7385a0d15 url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "1.1.0" typed_data: dependency: transitive description: @@ -2108,4 +2108,4 @@ packages: version: "2.1.0" sdks: dart: ">=3.11.0 <4.0.0" - flutter: ">=3.41.0" + flutter: ">=3.38.4"