Skip to content

fix: replace deprecated withOpacity() with withValues() and clean up unused variables in calendar_screen.dart#235

Open
Satyanarayana001 wants to merge 1 commit into
AOSSIE-Org:mainfrom
Satyanarayana001:fix/replace-withOpacity-calendar-screen
Open

fix: replace deprecated withOpacity() with withValues() and clean up unused variables in calendar_screen.dart#235
Satyanarayana001 wants to merge 1 commit into
AOSSIE-Org:mainfrom
Satyanarayana001:fix/replace-withOpacity-calendar-screen

Conversation

@Satyanarayana001

Copy link
Copy Markdown

Fixes #234

Problem

flutter analyze reported multiple issues in calendar_screen.dart:

  • deprecated withOpacity() calls (precision loss)
  • unnecessary string interpolation (line 487)
  • unused local variable 'results' (line 186)
  • unused local variable 'selectedDateTime' (line 699)

Fix

  • Replaced .withOpacity(x) with .withValues(alpha: x)
  • Removed unnecessary string interpolation
  • Removed unused local variables 'results' and 'selectedDateTime'

@coderabbitai

coderabbitai Bot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@Satyanarayana001 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 49 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 04c5151b-a64a-4ba8-be70-2aeb69edf42e

📥 Commits

Reviewing files that changed from the base of the PR and between 5afe656 and 2c524f8.

📒 Files selected for processing (1)
  • lib/screens/calendar/calendar_screen.dart
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can suggest fixes for GitHub Check annotations.

Configure the reviews.tools.github-checks setting to adjust the time to wait for GitHub Checks to complete.

@Satyanarayana001

Copy link
Copy Markdown
Author

Hi 👋, just a gentle follow-up on this PR.

This PR addresses multiple issues reported by flutter analyze in calendar_screen.dart, including deprecated API usage and unused variables.

Please let me know if any changes are needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLEANUP: Replace deprecated withOpacity() with withValues() in calendar_screen.dart

1 participant