Skip to content

sunmughan/termux-flutter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter-Termux

Run Flutter on Termux !

Install [online]

bash -c "$(curl https://raw.githubusercontent.com/mumumusuc/termux-flutter/main/install)"

Important

the script will download latest release assets and clone flutter into your CURRENT directory

Before flutter run please remember to install these dependencies and set DISPLAY env.

apt install gtk3 fontconfig xorgproto ninja cmake clang pkg-config

export DISPLAY=:0
termux-x11 :0 >/dev/null 2>&1 &

Now create a project then run it.

flutter create hello_world && cd hello_world
flutter run

Open Termux:X11 and enjoy the flutter on Termux.

Install [outdated]

  1. clone this repo or just download the install.py.

  2. download dart-sdk.tar.gz and engine.tar.gz from release page.

  3. run

     # flutter-3.13.6 as example
     $ git clone https://github.com/flutter/flutter -b 3.13.6
    
     # install patched engine & dart-sdk
     $ path/to/install.py --engine path/to/engine.tar.gz --dart-sdk path/to/dart-sdk.tar.gz path/to/flutter
    
     # set flutter path
     $ export PATH=$PATH:$(pwd)/flutter/bin
    
     # install dependence
     $ apt install gtk3 fontconfig xorgproto ninja cmake clang pkg-config
    
     # create & run
     $ flutter create hello_world && cd hello_world
     $ export DISPLAY=:0 && termux-x11 :0 &
     $ flutter run
  4. a video example using fish

Note

About

Run Flutter on Termux !

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 97.1%
  • Shell 2.1%
  • Makefile 0.8%