fix: Remove unused declarations (unused_element, unused_field, unused_local_variable)
@Muneerali199 is already working on this.
Since Mar 13, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Run flutter analyze from both patient and therapist to confirm the listed warnings. Inspect each named file and declaration, then remove the unused methods, fields, local variable, and key parameter or use the parameter correctly. Done means both apps no longer report these unused-declaration warnings.
Written by the indexing model from the issue text.
Description
Summary
flutter analyze reports several unused declaration warnings across both apps. Unused code is dead weight — it confuses readers and can indicate logic that was never wired up correctly.
Affected Declarations
patient app
| File | Symbol | Kind |
|---|---|---|
lib/presentation/activities/daily_activities_screen.dart:41 |
_animateProgress |
unused_element (private method) |
lib/provider/appointments_provider.dart:151 |
_formatTimeOfDay |
unused_element (private method) |
lib/provider/task_provider.dart:9 |
_apiStatus |
unused_field (private field) |
therapist app
| File | Symbol | Kind |
|---|---|---|
lib/presentation/auth/auth_screen.dart:48 |
isNewUser |
unused_local_variable |
lib/presentation/consultation/consultation_request_detail_screen.dart:375 |
_buildNotesSection |
unused_element (private method) |
lib/presentation/consultation/consultation_request_detail_screen.dart:483 |
_buildDetailRow |
unused_element (private method) |
lib/presentation/home/home_screen.dart:286 |
_buildConsultationRequestSection |
unused_element (private method) |
lib/presentation/therapy_goals/add_therapy_details_screen.dart:235 |
key parameter |
unused_element_parameter |
Steps to Reproduce
cd patient && flutter analyze
cd ../therapist && flutter analyze
Fix
- Remove unused private methods, fields, and local variables.
- For the unused
keyparameter: remove the optional parameter or use it correctly.
- Dominant language
- Dart
- Stars
- 30
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/NeuroTrack
-
fix(therapist): Method marked @override does not override any inherited methodPossibly taken @Muneerali199 claimed this 259 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AOSSIE-Org/NeuroTrack#198 ·
-
fix: Don't use BuildContext across async gaps (use_build_context_synchronously)Possibly taken @Muneerali199 claimed this 259 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AOSSIE-Org/NeuroTrack#197 ·
-
fix(patient): Remove unused and duplicate imports across patient appPossibly taken @Muneerali199 claimed this 259 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/NeuroTrack#195 ·
-
BUG: Therapy details save button has no loading guard, allowing duplicate submissions that inflate patient regression reportsPossibly taken @Varadraj75 claimed this 222 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 68/100
AOSSIE-Org/NeuroTrack#221 ·
-
BUG: Appointment booking ignores selected time slot, every appointment saved at midnight to SupabasePossibly taken @Varadraj75 claimed this 227 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 55/100
AOSSIE-Org/NeuroTrack#219 ·
All issues in AOSSIE-Org/NeuroTrack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Anxcye/anx-reader#1024 ·
-
[cloud_functions]: Apple platforms ignore custom domains passed as regionPossibly taken @ragavendranbala-TSL claimed this today. OpenNeeds Attention platform: ios platform: macos plugin: functions type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firebase/flutterfire#19015 · 2 comments ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RevenueCat/purchases-flutter#2048 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hajisensai/Fushi#4543 · 3 comments ·
Maintainers usually reply within 1 day
-
[video_player] _updatePosition sets isCompleted=true after 500ms when duration is Duration.zeroOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day