I would like to remove a button when it's clicked. Following my Python3-Flet script:
import flet as fl
def main(page:fl.Page):
def remove(e):
pass #what could i do for remove the button?
page.add(fl.ElevatedButton('REMOVE ME',on_click=remove))
page.update()
fl.app(target=main)
You can use e.control to remove your element. It helps to you to remove this button.
If you want to remove different element u can use