If you are using vscode, add this linter rule: prefer_relative_imports
prefer_relative_imports
Then go to each file, press CTRL+. and select Convert to relative imports, ever where in the file.
Works great.
linter: rules: prefer_relative_imports: true