Comments (4)
Do I install a compatible SDK on my regular computer, build the assets bundle, and them move them to the Pi?
Exactly
Can you point me to info that would help me take that step?
Unfortunately, there's not that much info about that. I found this (though he uses a flutter-pi fork instead of vanilla flutter-pi)
So here are some rough steps:
- install flutter using the instructions on the webpage
- if you're using windows: install SSH using these instructions
- it's best you setup public-key authentication using these instructions, so you don't have to enter your Pis password every time you transfer an asset bundle
- open the command line / terminal and enter
cd <the path to your app directory>
. Keep in mind you need to surround the path in quotes if it contains spaces. So for example,cd C:\Users\Test\Desktop\flutter_test\
would be a possible command. - from this point on you can follow the instructions on the page I mentioned, starting from the second command.
- (for running flutter-pi on the target, just run
flutter-pi ./flutter_assets
orsudo flutter-pi ./flutter_assets
if you are getting an error without sudo)
EDIT: forgot the word fork
in one place
from flutter-pi.
OK, very helpful feedback. Will give this a go. Thanks very much.
from flutter-pi.
So very cool! it is working.
For the benefit of others, here are few more details that I did not understand at first:
I followed your directions on the engine-binaries branch to get your prebuilt binaries.
After moving the .h and .so files per the instructions on that branch I deleted the cloned flutter-pi directory.
Then I cloned your master branch to create flutter-pi again. Then I cd'd into flutter-pi and ran make.
After that I edited my .profile file and added the flutter-pi executable to my path.
I already had a garden variety flutter SDK install on my Mac. I made sure I had a working app as tested in an iOS simulator.
Then I patched the app in my main.dart file per your instructions.
Then inside my flutter app directory on my Mac I ran "flutter build bundle"
Then I used scp to copy over the build/flutter_assets directory.
Then at the command line on my pi I ran
flutter-pi /home/pi/flutter_assets/
and it all jumped to life and is working. I have 4 buttons on my simple app and they all seem to work nicely with the standard pi 7 inch touchscreen.
Also in case anyone is curios, I am using the latest Buster Lite version of Raspian.
This is sooo cool! You are awesome for putting this out there for others. Thank you. Now I can dev away on my computer. When I am happy with my app just build the asset bundle and push it on over and run it on the pi.
from flutter-pi.
Thanks! I'm glad it worked!
from flutter-pi.
Related Issues (20)
- 🐛 throwing DRM and GBM errors w/ latest kernel HOT 5
- Does webview work?
- screen ratio not respected. HOT 2
- MissingPluginException - method setSourceBytes (audioplayers) HOT 2
- error: static assignment failed: Expressionevaluation to false HOT 2
- No output on Odroid M1S when using Vu5S MIPI-DSI display HOT 14
- error: Couldn't create GBM surface for rendering - Rasberry pi 5 with 7 inch DSI official display HOT 6
- Missing Depens in Readme ? HOT 2
- Different resolution in flutter-pi than that of the OS (DSI panel) HOT 4
- Installing on iMX6ULL HOT 6
- Audioplayers MissingPluginException HOT 1
- Orange Pi Zero 3 configuration HOT 3
- Does flutter-pi work on Orange Pi 3 LTS? HOT 1
- Error installing flutterpi_tool HOT 1
- Member not found: 'windows_arm64' HOT 1
- MissingPluginException No implementation found for method openFile HOT 1
- Mouse Only Moves on Half the Screen with flutter-pi Rotated 90 Degrees
- RK3566 board get black screen with a cursor
- New Snapp CLI Update: Easy Raspberry Pi Setup from scratch, and Custom Device Integration HOT 2
- Flutter-pi and nanodlp image display conflict problem. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-pi.