When I try to move files from one directory to another, Android studio auto-search and changes imports of that file in other files which is really convenient.
But in Flutter when I do this it starts the file import from "file//...path"
in place of "package:...path"
i.e
import 'file:///C:/Users/my_name/AndroidStudioProjects/path-to-file/newpage_component.dart';
in place of
import 'package:path-to-file/newpage_component.dart';
This is really annoying and I have to change it in every file manually.
The biggest problem arises if you are using build_runner
lib. It doesn't run watch
command if there is any import starting from 'file://'