Add x11 backend runner support (#22)

This commit is contained in:
Hidenori Matsubayashi
2021-07-27 14:48:40 +09:00
committed by GitHub
parent 0a3ef762f5
commit d2a2a44002
3 changed files with 37 additions and 12 deletions
+21 -3
View File
@@ -11,9 +11,9 @@ $ sudo mv flutter-elinux /opt/
$ export PATH=$PATH:/opt/flutter-elinux/bin
```
### Install dependent libraries
### Install other tools
```Shell
$ sudo apt install curl
$ sudo apt install curl clang cmake pkg-config
# If you want to use Weston as a Wayland compositor:
$ sudo apt install weston
```
@@ -21,11 +21,29 @@ $ sudo apt install weston
### How to run flutter sample app in Weston
You need to install a Wayland compositor such as Weston and launch it before launching your Flutter apps.
```Shell
$ flutter-elinux devices
3 connected devices:
eLinux (desktop) • elinux-wayland • flutter-tester • Ubuntu 20.04.2 LTS 5.8.0-63-generic
eLinux (desktop) • elinux-x11 • flutter-tester • Ubuntu 20.04.2 LTS 5.8.0-63-generic
```
```Shell
$ flutter-elinux create sample
$ cd sample
$ weston &
$ flutter-elinux run -d elinux
$ flutter-elinux run -d elinux-wayland
```
If you want to run your flutter app in X11, use `elinux-x11` instead of `elinux-wayland`:
```Shell
$ flutter-elinux run -d elinux-x11
```
### How to run flutter sample app in X11
```Shell
```
## Documentation