Skip to content

Remove deprecation for page.on_resize #3516

Closed
@InesaFitsner

Description

@InesaFitsner

Duplicate Check

Describe the bug

page.window.on_resized doesn't work for web and mobile so we need to remove deprecation for page.on_resize

Code

import flet as ft

def main(page: ft.Page):

    def page_resize(e):
        print("Page resize triggered")

    page.on_resize = page_resize

ft.app(main)

To reproduce

  1. Run repro code -> page_resize is not triggered

Expected behavior

No response

Screenshots

No response

Operating System

macOS

Operating system details

macOS

Flet version

0.23.0

Regression

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

Suggestions

No response

Additional details

No response

Metadata

Metadata

Assignees

Labels

enhancementImprovement/Optimization

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions