I have a full Docker image that has Flutter SDK, Android SDK, Dart SDK, etc, all installed and in the $PATH.
I made it work on Intellij Idea, I can click "deploy" and it launches, but then I don't know what else to do.
I thought Intellij Idea would work inside this container, and so it would find Dart SDK, etc, and work.
How can I compile my flutter project using the SDK from the container on Intellij Idea? And also how to use intellisense, etc, all from things inside the container
An important pre-requisite is the installation of Docker on your local machine. Now, run docker images to get your Docker Image ID. With the obtained Image ID, run docker run -i -t IMAGE ID . You can now create or clone a Flutter Repository from Github and try smoke or integration testing on your Flutter App.
Make sure the Docker plugin is installed and enabled To enable Docker support in IntelliJ IDEA Community Edition or IntelliJ IDEA Edu, install the Docker plugin from the Marketplace. Press Ctrl+Alt+S to open the IDE settings and select Plugins. Find the Docker plugin and make sure it is installed and enabled.
Seems like this is not something that is currently supported in IntelliJ, according to a forum-post answered by JetBrains staff.
How I see it, you have three options:
With #3 I mean something like this, when running your container:
docker container run -itd \
-v /local/path/to/sdk:/docker/path/to/sdk \
devimage
and then in your IDE you can set the path to that, or you could even set some environment variables like e.g. ANDROID_HOME
to point to the local bind location.
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