Skip to content

Refactor: Replace deprecated Flutter APIs across the project #242

@Satyanarayana001

Description

@Satyanarayana001

The project currently uses several deprecated Flutter APIs that generate warnings during analysis.

Examples include:

  • withOpacity() → deprecated, should use withValues(alpha: ...)
  • surfaceVariant → replaced by surfaceContainerHighest
  • Deprecated drag callbacks (onAccept, onWillAccept)
  • Deprecated speech recognition parameters

These deprecations may lead to compatibility issues with newer Flutter versions.


🎯 Proposed Changes

  • Replace all usages of withOpacity() with withValues(alpha: ...)
  • Update surfaceVariant to surfaceContainerHighest
  • Migrate deprecated drag-and-drop callbacks
  • Update speech recognition API usage

✅ Benefits

  • Reduces analyzer warnings
  • Improves codebase maintainability
  • Ensures compatibility with latest Flutter versions

📊 Additional Context

Running flutter analyze shows multiple deprecation warnings across different modules. :contentReference[oaicite:0]{index=0}


🙋‍♂️ Contribution

I would like to work on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions