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

Flet's WebView won't display content after building the app for Android. #4714

Open
1 task done
ChiefIvan opened this issue Jan 14, 2025 · 0 comments
Open
1 task done

Comments

@ChiefIvan
Copy link

Duplicate Check

Describe the bug

I don't know exactly know what the problem is, is it my environment, My code or is the WebView control is broken, I tried to follow every detail on what's in the docs, but no luck!

I am using latest versions of flet and flutter but it doesn't work.
My phone is Running on Android 14

Code sample

main.py

import flet as ft

def main(page: ft.Page):
page.window_width = 400

wv = ft.WebView(
    url="https://flet.dev",
    on_page_started=lambda _: print("Page started"),
    on_page_ended=lambda _: print("Page ended"),
    on_web_resource_error=lambda e: print("Page error:", e.data),
    expand=True,
)

page.add(wv)

if name == "main":
ft.app(main)

To reproduce

No Preview

Expected behavior

It should displays the Web Contents

Screenshots / Videos

Sample Screenshot

Screenshot_20250114-104328
Screenshot_20250114-104333

Operating System

Windows

Operating system details

Windows 11

Flet version

0.25.2

Regression

I'm not sure / I don't know

Suggestions

I am not sure if it works in previous versions
if it really doesn't work then should try switching to different frameworks

Logs

No response

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ChiefIvan and others