-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apps launch and UI visible but no response to touch. No text visible in apps. #178
Comments
Hello, can you try launching flutter-pi without the The missing text probably means some font is missing, additional to the fontconfig package, did you install the arial font? I think the flutter_embedded readme also hints that but maybe something went wrong in that step
I think this is a flutter-pi "bug". Flutter-pi currently doesn't tell flutter about the system locale, which could result in the "textDirection" being null. (Which is what caused that exception) "Bug" in quotation marks because the embedder API should be backwards compatible and that possibility to give flutter the system locale is a pretty new feature. I'll fix it |
Hi. Thanks for replying.
I hadn't installed the Arial font. Just installed the 2 packages that had Arial fonts. And now the text is visible in both the apps I made 😁. Just in case it could help someone, the packages were
Tried launching all apps without the
Cool. 👍 Any idea what could I look at next to solve the touch issue? Update: Just tried out evtest utility on the Pi. It detects the WaveShare touch input. Does flutter-pi rely on some kind of touch calibration like jwinarske has mentioned here?: Touch Panel Calibration |
Have you made sure you use the latest flutter-pi? Actually very important in this case, added a workaround for flutter 2.2 recently that fixed an issue exactly like this. Can you add some kind of
that depends on your display. For some displays the touch coords are rotated, though if that's the case you should see that with evtest. |
meta-flutter flutter-pi recipe was using The apps seems to run at 60fps most of the time. Although the Reply demo in the flutter-gallery app lags when scrolled. And there are screen tears when images are scrolled. Otherwise everything seems to work as expected. Thanks a lot for the help. |
Hello. I have been trying to get flutter apps to run on my RPi 3B+ that is running a Yocto image. Haven't had much success yet.
Target: Raspberry Pi 3B+
OS: Yocto (Dunfell) with raspberrypi3-64 as the MACHINE (64-bit). I am using the meta-flutter layer developed by jwinarske.
Display: Waveshare 7inch HDMI LCD (B). Resolution: 800x480. Dimensions: 154.08, 85.92.
Display config added to /boot/config.txt:
From the meta-flutter layer I have added flutter-pi and flutter-gallery to the Yocto image.
I have tried running flutter-gallery.
Command:
$ flutter-pi -i /dev/input/touchscreen0 -d "154,86" --release /usr/share/flutter-gallery/sony/data/flutter_assets/
The app is launched and the UI is visible. But the app does not accept any touch input.
Output displayed by flutter-pi: pastebin
Sidenote: Before I had the fontconfig package installed I used to get these errors in the flutter-pi output:
Using $ cat /dev/input/touchscreen0 and then touching the touchscreen produces random output. Touching anywhere on the screen does this. So I am guessing that touch is set up correctly?
Because the flutter-gallery app wasn't working, I decided to try and make my own app using the instructions you have provided in the README.md.
These are the commands I used. Hope nothing is wrong here.
The apps I created launch on the Pi. But none of the text is visible on the screen. For the flutter example app, the appbar on top doesn't show the title. There is no text showing the current value of the counter. And touching the + button does nothing, there is not animation on the button when its touched. Output: pastebin
App 2 is the app that gives infinite word pairs on scrolling. It runs and has the same problem, no title text is visible in the appbar. This app has a listview with lines dividing the list tiles. The divider between the list tiles isn't shown. Touching the screen does nothing. Output: pastebin
These apps run fine on my Linux Desktop. At this point I am kind of out of ideas. I am new to flutter and I don't know much about the how flutter-pi works so I am having difficulty in troubleshooting this. Sorry that this post is so long.
Any help is appreciated. Thanks.
P.S. Earlier I was facing an issue with flutter-pi where touching the button in the top right corner used to produce this error: pastebin: https://pastebin.ubuntu.com/p/qhDcDVKg4j/
Now touching that button does nothing. Installing fontconfig might have fixed it. I am not sure how those two could be connected.
The text was updated successfully, but these errors were encountered: