
When invoked from the command line, relative paths aren't typically used, but they are when invoked from within IDEA and prevents IDEA from reading the files. Also, remove flutterPackagesDirectory since it's not used
Flutter tools
Tools for building Flutter applications.
To run the tests, ensure that no devices are connected and run:
pub get
FLUTTER_ROOT=$PWD/../.. dart --checked test/all.dart