Open FeodorFitsner opened 1 year ago
At the moment, the below can be done:
import flet as ft
def main(page: ft.Page):
page.add(
ft.ElevatedButton(
"Don't click me",
on_click=lambda _: page.error("You shouldn't have clicked me!!")
)
)
ft.app(target=main)
Or one could create a View
to which the app routes can route when an error is caught by the try-except
or page.on_error
event.
This view could contain a form to send feedback...
Discussed in https://github.com/flet-dev/flet/discussions/614