Merge branch 'master' of http://git.roojs.com/roobuilder
[roobuilder] / notes / flutter.txt
1 Create a project (with all the files..)
2
3 flutter create /path/to/newdir
4 -------
5 build 
6 build: (PWD== working dir)
7 flutter create apk
8
9 -------
10 Set up emulators
11 flutter emulators
12 1 available emulator:
13
14 Nexus_6_API_28 • Nexus 6 • Google • Nexus 6 API 28
15
16 To run an emulator, run 'flutter emulators --launch <emulator id>'.
17 To create a new emulator, run 'flutter emulators --create [--name xyz]'.
18
19 You can find more information on managing emulators at the links below:
20   https://developer.android.com/studio/run/managing-avds
21   https://developer.android.com/studio/command-line/avdmanager
22  flutter emulator --launch Nexus_6_API_28
23 -------
24 test run:
25
26 flutter run
27
28 (press 'r') - triggers the hot reload
29
30 ---------------------------
31 emulator embedded?
32
33 Xvfb :2 -screen 0 1024x768x24 > /dev/null 2>&1 &
34 x11vnc -display :2 -quiet -nopw
35 DISPLAY=:2  ~/Android/Sdk/emulator/emulator -avd Nexus_6_API_28
36
37 // this bti can use vnc-gtk...
38 vncviewer localhost:0