flet
flet copied to clipboard
on_resize update is slow
Hello, I would like to know how I can get a real-time resize, currently the update only happens when there are no other updates and as a result as long as you drag the page to enlarge it you can see the gap between the control and the page that have different background colors. You can test this code:
from flet import *
from src.classes.widgets import *
from src.classes.app_layout import *
def main(page: Page):
def on_resize(e):
left_column.height = page.window_height
page.update()
page.on_resize = on_resize
left_column = Container(Column([Text("test")]),bgcolor=colors.AMBER,height=page.window_height)
page.add(left_column)
app(target=main)
thank you