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 Webpage Not Working Properly #4527

Open
1 task done
JayasuryaDaikoku opened this issue Dec 9, 2024 · 1 comment
Open
1 task done

Flet Webpage Not Working Properly #4527

JayasuryaDaikoku opened this issue Dec 9, 2024 · 1 comment

Comments

@JayasuryaDaikoku
Copy link

Duplicate Check

Describe the bug

The webpage loads but Google Calendar, Gmail, and login functionalities are not working. They open, but do not respond or function as expected.

Code sample

class WebpageView:
def init(self, go_main):
self.go_main = go_main
self.scaled_width_portrait = 391
self.scaled_height1_portrait = 120
self.scaled_height2_portrait = 610
self.scaled_height_landscape = 392
self.scaled_width_portrait1 = 250
self.scaled_width_portrait2 = 580
self.settingsmain_container = None

def webpagemain(self, page):
    print("Initializing WebView")
   
    back_button = IconButton(icon=Icons.ARROW_BACK,icon_size=0,alignment=alignment.bottom_center,on_click=lambda e: self.go_main())
    back_button_2 = IconButton(icon=Icons.ARROW_BACK,icon_size=30,alignment=alignment.bottom_center,on_click=lambda e: self.go_main())
    back_button_container = Container(
        content=back_button,
        width=60,  
        height=15, 
        alignment=alignment.bottom_center,  
        padding=10
    )
    wv = WebView(
        url="https://calendar.google.com",
        expand=True,
        on_page_started=lambda _: print("Page started"),
        on_page_ended=lambda _: print("Page ended"),
        on_web_resource_error=lambda e: print(f"Page error: {e.data}")
    )
    return[back_button_container,back_button_2,wv] 

To reproduce

wv = WebView(
url="https://calendar.google.com",
expand=True,
on_page_started=lambda _: print("Page started"),
on_page_ended=lambda _: print("Page ended"),
on_web_resource_error=lambda e: print(f"Page error: {e.data}")
)

Expected behavior

No response

Screenshots / Videos

old version Captures

[
Screenshot 2024-12-09 120210
]
[
Screenshot 2024-12-09 120219
]

new version Captures issues [ ![1000226924](https://github.com/user-attachments/assets/442921da-daf3-4e43-914d-884222e8fcb0) ] [ ![1000226927](https://github.com/user-attachments/assets/1ca29ac1-59a8-4b07-abf1-8b631a9b8010) ]

Operating System

Windows

Operating system details

windows11

Flet version

flet 0.25.1

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

old version 0.24.1 is good

Logs

Logs
[Paste your logs here]

Additional details

No response

@JayasuryaDaikoku JayasuryaDaikoku changed the title Issue 1: Flet Webpage Not Working Properly Flet Webpage Not Working Properly Dec 9, 2024
@JayasuryaDaikoku
Copy link
Author

1000226927

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

1 participant