- Install docker
- Install docker-compose
- Install make
- at the host terminal:
make build
- note: avoid building repeatedly, especially if you have already created the project and executed
The /dev/kvm
permission perform the steps optional
- at the host terminal:
make permission
- note: the container terminal will open, in mode root
- in container terminal:
chown developer:developer /dev/kvm
- in container terminal:
exit
- at the host terminal:
make run
- note: the container terminal will open, in development mode. To close the terminal, run
exit
- note: the container terminal will open, in development mode. To close the terminal, run
note: Use the container with user developer
- at the container terminal, access project folder:
cd project
- at the container terminal, run:
flutter create yournameapp
- note: it is necessary to create your application in the
project
folder
- note: it is necessary to create your application in the
- copy your project to
workdir
folder
note: Use the container with user developer
- at the container terminal, to create an emulator:
flutter emulators --create
- at the container terminal, to list emulators:
flutter emulators
- at the container terminal, to start emulator:
flutter emulators --launch <emulator id>
- note: if the emulator does not open, run the permission again
- at the container terminal, to check with doctor:
flutter doctor
- open the
emulator
or connect yourdevice
with the usb cable - at the container terminal, list devices with the
adb
:adb devices
- note: check the list of devices
- at the container terminal, to check with doctor:
flutter doctor
- note: check the
emulator
ordevice
and confirm access to the permission
- note: check the
note: Use the container with user developer
- at the container terminal, access project folder:
cd project/yournameapp
- at the container terminal, run:
flutter run
- note: using hot reload, press r or R on the terminal