fix: Remove unused declarations (unused_element, unused_field, unused_local_variable)

Open
#199 0 comments 0 reactions 0 assignees View on GitHub

@Muneerali199 is already working on this.

Since Mar 13, 2026.

  • #204 by @Muneerali199 — open
  • #211 by @suhas2006-code — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Stale
Tech stack
dart, flutter
Domain
mobile, tooling

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 key parameter: 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/NeuroTrack

All issues in AOSSIE-Org/NeuroTrack

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.