sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
424 stars 43 forks source link

Bug on Scrolling #187

Closed FizboIV closed 1 year ago

FizboIV commented 1 year ago

Hi, I'm working on a simple machine interface using

I implemented a scrollable table and every time I scroll everything except the table vanishes.

How it looks like before scrolling: IMG_3592

How it looks like after scrolling: IMG_3593

I also build the flutter app for web. There's everything working fine and as expected. Do you have any ideas how to fix it?

Thank you

HidenoriMatsubayashi commented 1 year ago

Can you check if this issue occurs on flutter for Linux desktop or Android/iOS? I believe this doesn't depend on flutter-elinux. I think it depends on flutter-engine or flutter framework. Also, please check your Dart code, too.

HidenoriMatsubayashi commented 1 year ago

Just FYI.

I also build the flutter app for web

flutter engine of the flutter for web is completely different from desktops and mobiles (iOS/Android). Thus, flutter for web is not helpful.

FizboIV commented 1 year ago

I tested a bit today and it does work on iOS. I checked on iPhone and iPad. Unfortunately I can't test on other platforms.

I also noticed that as long as I plug in a mouse and scroll with the mouse the bug doesn't not happen. Maybe it is a problem with the touch input?

HidenoriMatsubayashi commented 1 year ago

Can you share the source code?

FizboIV commented 1 year ago

code can be found here: https://github.com/FizboIV/embedded_test

its the custom_table widget that is malfunctioning

HidenoriMatsubayashi commented 1 year ago

Now, I could reproduce this issue.

HidenoriMatsubayashi commented 1 year ago

@FizboIV This issue occurs on RPI4 + Weston v9, but it doesn't happen on RPI4 + Sway. Can you please try to run the app using Sway instead? IIRC, Weston is basically a reference design for Wayland compositor. I think it has some issues.

FizboIV commented 1 year ago

That did the trick! Thank you very much! I really appreciate it. :)