Flutter On Embedded

Resources

  • https://morioh.com/a/b60e10fd7066/flutter-pi-run-flutter-apps-on-raspberry-pi#gstreamer-video-player

Building Flutter-Pi

On host computer (ARM64)

# Install flutter snap
sudo snap install flutter

# Install flutterpi_tool
flutter pub global activate flutterpi_tool


# Clone flutter gallery
git clone https://github.com/flutter/gallery.git flutter_gallery
cd flutter_gallery

# Build flutter gallery
flutter pub get
$HOME/.pub-cache/bin/flutterpi_tool build --arch=arm64 --release --cpu=pi4
# Install flutter snap
sudo snap install flutter

# Install flutterpi_tool
flutter pub global activate flutterpi_tool


# Clone flutter gallery
git clone https://github.com/flutter/gallery.git flutter_gallery
cd flutter_gallery

# Build flutter gallery
flutter pub get
$HOME/.pub-cache/bin/flutterpi_tool build --arch=arm64 --release --cpu=pi4

# Copy build to target device
rsync -a ./build/flutter_assets/ orangepi@10.10.20.135:/home/orangepi/flutter_gallery/

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *