Skip to content

Conversation

@bhanuka96
Copy link
Contributor

Fixes CI/CD analyzer warnings from PR #294 by replacing deprecated withOpacity() with withValues(alpha:).

Changes

  • Updated 11 example files across all projects
  • Replaced 12 instances of deprecated method
  • Verified with flutter analyze - no issues found

Testing

  • All examples analyzed successfully
  • No breaking changes to functionality

Replaces deprecated withOpacity() with withValues(alpha:) to resolve Flutter analyzer warnings from PR tensorflow#294.

- Updated 11 example files with 12 replacements
- Verified with flutter analyze - no issues found
@bhanuka96
Copy link
Contributor Author

@PaulTR This PR fixes the CI/CD failure that occurred after PR #294 was merged.

The Issue:
After you merged PR #294, the GitHub Actions workflow failed due to 12 Flutter analyzer warnings about deprecated withOpacity()
usage:
https://github.com/tensorflow/flutter-tflite/actions/runs/18851441161

The Fix:
This PR replaces all 12 instances of deprecated withOpacity() with withValues(alpha:) across the example projects.

Verification:

flutter analyze .
# Result: No issues found! (ran in 22.3s)

Impact:
- Fixes all CI/CD analyzer warnings
- No breaking changes
- No functionality changes
- Makes the pipeline green again

This is a quick fix to unblock the main branch CI. Could you please review and merge when you have a moment? Thanks!

@PaulTR PaulTR merged commit 03536e5 into tensorflow:main Oct 27, 2025
2 checks passed
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.

2 participants