I have three projects, one common widget package and two applications. I have the following directory structure
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With