Run Flutter on Termux !
Caution
This build is incompatible with Android 14
Download flutter.deb
from release page, then run
apt install x11-repo
apt install /path/to/flutter.deb
Now flutter
has been installed to $PREFIX/opt/flutter
, test it with flutter doctor -v
.
To uninstall flutter
run
apt remove flutter
-
Linux
Use Termux:X11 to preview your flutter app.
export DISPLAY=:0 && termux-x11 :0 >/dev/null 2>&1 & flutter run -d linux
In addition, edit
linux/my_application.cc
to make preview fit to your screen.- gtk_window_set_default_size(window, 1280, 720); // '500x740' is my choice. + gtk_window_set_default_size(window, 500, 740);
-
Android
# list conected devices flutter devices flutter run -d <device_id>
-
Web server
flutter run -d web-server --web-port 8080
Open your web app then enter
localhost:8080
-
impeller3d
is enabled but it doesn't work withgtk3
currently. You can build aglfw
application usinglibflutter_engine.so
like this demo