How to refactor file names in Android Studio in Dart or Flutter project?
1,559
Solution 1
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.
Solution 2
To rename files in Android Studio and changing the references of that fil in the code use Refactor > Rename
on the file itself.
Author by
Joel Broström
Updated on December 12, 2022Comments
-
Joel Broström over 1 year
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?