0

I am making a website in Flet. There is a button in the appbar:

loginbutton = ft.TextButton(text = "Login", on_click=login, tooltip = "Login with your API key")

and a card:

card = ft.Card(content=ft.Text("This is a login card"), width = 400)

And I want to make it like: Not real (a bit like the dropdown menu)

The login card will appear near the login button once the button is clicked, and disappear if the mouse clicked places other than the button and the card. How am I able to do this?

easonoob
  • 23
  • 5
  • It's currently not possible to make a custom dropdown button content, but, imho, the best way to implement that would be opening an `AlertDialog` with login options. – Feodor Fitsner Dec 16 '22 at 01:15

0 Answers0