chore: resolve accumulated Flutter analyzer warnings and lint violations

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

@NihalDR is already working on this.

Since Jun 2, 2026.

  • #959 by @NihalDR — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
dart, flutter
Domain
mobile, tooling

Research direction

Start by running flutter analyze and group the reported warnings by deprecated APIs, formatting, dead code, null safety, and widget conventions. Confirm the Flutter SDK lower bound, then run the existing test suite; done means clean analyzer output, no functional changes, and all tests passing.

Written by the indexing model from the issue text.

Description

Problem

The codebase has accumulated a significant number of Flutter analyzer warnings and lint violations over time. These include deprecated API usages, formatting inconsistencies, dead code, unnecessary null checks, and widget convention violations.

Left unaddressed, these issues:

  • Increase noise in the analyzer output, making it harder to spot real problems
  • Reduce compatibility with newer Flutter SDK versions
  • Make the codebase harder to maintain and onboard new contributors to

Current state

Running flutter analyze produces warnings across multiple categories:

  • Deprecated APIs — WillPopScope and other widgets/methods removed or deprecated in recent Flutter versions
  • Formatting — lines exceeding 80 columns, missing trailing commas
  • Const correctness — missing const constructors and literals; unnecessary Container widgets
  • Dead code — unused imports, variables, private helpers, unreachable switch branches
  • Null / type safety — unnecessary null checks, redundant is type assertions
  • Widget conventions — missing braces on control flow, @immutable violations, constructor style

Expected state

  • flutter analyze returns zero warnings
  • All deprecated APIs replaced with their modern equivalents
  • Codebase consistently formatted to the Dart style guide
  • No unused code cluttering the project

Acceptance criteria

  • WillPopScope fully migrated to PopScope (requires Flutter ≥ 3.12 — confirm SDK lower bound)
  • flutter analyze passes clean on CI
  • No functional behavior changes introduced
  • All existing tests continue to pass
Dominant language
Dart
Stars
115
Forks
227
PR merge metrics
No merged PRs in 30d

Getting set up

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 CCExtractor/ultimate_alarm_clock

All issues in CCExtractor/ultimate_alarm_clock

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.