Flutter-intellij: importing other flutter modules into project

Created on 2 Mar 2018  路  4Comments  路  Source: flutter/flutter-intellij

Hello,

I have an application made in flutter at flutterApp/ and library at flutterLib/.

Now how do I import library module inside flutterApp project?

If I choose importModule from module options, It asks me some unrelated flutter question.

What is the correct way to do it?

Most helpful comment

The question was how to have both projects inside the single intelliJ project, so that I can refactor the package while testing it in sample app without switching project windows.

All 4 comments

Flutter libraries come in two forms: packages and plugins. A Flutter package is basically a Dart package and has no platform native code; it is device independent. A plugin is a package that has device-dependent code.

The easiest way to get started is to create a Flutter app then add packages and plugins to it. See
Using Packages and Developing Packages & Plugins for more info.

The question was how to have both projects inside the single intelliJ project, so that I can refactor the package while testing it in sample app without switching project windows.

There is an example here in the docs. https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages

This is not the answear to the question. The question is if I have Dependencies on unpublished packages
like it is shown in the example you provide then how to import it to android studio as separate module.

Was this page helpful?
0 / 5 - 0 ratings