When using android studio's refactoring tool refactoring -> rename to change file names or file paths it does not change the corresponding imports.
In Android projects this happens automatically, but when in a flutter project name changes of files breaks all classes importing the renamed file.
Is it possible to fix this?
I found the source of my problem.
Search for references and Search in comments and strings were unchecked.
Checking search for references solved the issue.

To rename files in Android Studio and changing the references of that fil in the code use Refactor > Rename on the file itself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With