Try to run: dart fix --apply command in the terminal.
This command analyzes and automatically applies fixes to your project, which may resolve any import-related issues.
Additional Fixes to Try:
Restart Android Studio – Sometimes, a simple restart can refresh indexing and resolve the issue.
Invalidate Caches and Restart – Go to File > Invalidate Caches / Restart and select Invalidate and Restart. Check Dart and Flutter Plugins – Ensure both Dart and Flutter plugins are installed and up to date.