flutter-tools.nvim icon indicating copy to clipboard operation
flutter-tools.nvim copied to clipboard

[Feature] set project root in complex project structures.

Open dgriffith0 opened this issue 1 year ago • 1 comments

I have a Project Structure that looks like...

Root

  • Packages
    • Package1
    • Package2
    • Package3

My FlutteRun needs to execute from Package 2 (where my main.dart lives). If I am in package 3, it always wants to run from Package 3. Which makes it so I have to go back a directory if I am in package 1 or 3. Ex: FlutterRun -t ../package2/path/to/main.

Is there a way to specify where this should run from? Ideally I would want FlutterRun to execute from the project root so i can specify -t packages/package2/path/to/main and it works no matter where i am at.

Thanks!

dgriffith0 avatar Aug 31 '22 17:08 dgriffith0

Would we want this in the setup_project({}) config? Or just as an argument to flutter run?

JordanllHarper avatar Jun 28 '24 15:06 JordanllHarper