Skip to content
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

Web App UI layout issues on Mobile when "Desktop Site" Mode is enabled #4839

Open
1 task done
TheRayGent opened this issue Feb 6, 2025 · 2 comments
Open
1 task done
Labels
bug Something isn't working has-upstream This issue depends on an upstream issue platform: web Specific to the web platform

Comments

@TheRayGent
Copy link

TheRayGent commented Feb 6, 2025

Duplicate Check

Describe the bug

I noticed here that if you turn on "Desktop site" from your phone on a site written in flet, the site stops displaying normally, and most often it doesn't load at all in the vertical position of the phone. It only works normally if you hold the phone horizontally. For example, the site https://gallery.flet.dev/todo/

Image
Image

Image

Image

Code sample

Code
[Paste your code here]

To reproduce

  1. Enable on the site from the phone "Desktop site"

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Android 15

Flet version

?

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

@ndonkoHenri
Copy link
Contributor

ndonkoHenri commented Feb 15, 2025

@ndonkoHenri ndonkoHenri added platform: web Specific to the web platform bug Something isn't working labels Feb 15, 2025
@ndonkoHenri ndonkoHenri changed the title "Desktop site" mod on phone Web App UI layout issues on Mobile when "Desktop Site" Mode is enabled Feb 15, 2025
@ndonkoHenri ndonkoHenri added the has-upstream This issue depends on an upstream issue label Feb 15, 2025
@TheRayGent
Copy link
Author

Thanks for the help @ndonkoHenri. I didn't think to look at the issue in the flutter repository, but I tried to use html instead of canvaskit before, but the problem remained. It turned out that using flutter build web --web-renderer html the project is still built using canvaskit, but I guessed to use flutter build web --web-renderer html and everything worked. The problem is solved, but instead of stretching the screen now the site lags, but as far as I understand, there is no solution for this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has-upstream This issue depends on an upstream issue platform: web Specific to the web platform
Projects
None yet
Development

No branches or pull requests

2 participants