Skip to content

saccho/flutter-container-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter-container-sample

Sample repository to launch flutter app using vscode devcontainer.

You can connect to the host's Android emulator from the container by using the matsp/docker-flutter image.

Requirements

In your host PC

  • Visual Studio Code
  • Android emulator
  • Android SDK

Setup

  1. Open this project in vscode.
$ git clone [email protected]:saccho/flutter-container-sample.git && cd flutter-container-sample
$ code .
  1. Launch the Android emulator in your host PC.
# in your host PC
# check the avd list
$ emulator -list-avds
# launch any emulator
$ emulator -avd <avd-name>
  1. Execute the following command so that you can connect to the emulator via the network.
# in your host PC
$ adb tcpip 5555
# in your devcontainer
$ adb connect host.docker.internal:5555
  1. Start the app (or run debug lib/main.dart from vscode).
$ flutter run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published