skip to Main Content

I have three projects, one common widget package and two applications. I have the following directory structure

  • widgets (pubspec.yaml, lib/, ..)
  • app1 (pubspec.yaml, lib/, ..)
  • app2 (pubspec.yaml, lib/, ..)

I can open them in three separate AndroidStudio windows but this has some drawbacks. A refactoring in eg widgets (eg renaming a widget or a function name) is not applied to app1 or app2.

So I’m wondering whether it is possible to open the three projects in a single AndroidStudio window so that refactoring is applied to all projects

2

Answers


  1. Chosen as BEST ANSWER

    Apparently, it is possible to have multiple 'modules' open in AndroidStudio where a module can be either a Flutter application or a Flutter package. Hence it is perfectly possible to have the 'widgets' and 'app1'/'app2' open in a single window. This can be done by using "File/Project structure...", select "Modules" and click "+" and point to the iml file of the module you want to add.


  2. Possible duplicate of How do I open two or more projects at the same time in android studio.

    Try to go to Settings > Appearance & Behavior > System Settings,
    in the Project Opening section,
    choose Open project in new window.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search