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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions