flet-dev / examples

Flet sample applications
MIT License
433 stars 174 forks source link

Simple Toast messages #14

Closed StanMathers closed 1 year ago

FeodorFitsner commented 1 year ago

I see you utilized Stack to contain toasts. FYI: Page/View component is already a Stack and page.splash gives an access to one of its layers. Look at this example: https://github.com/flet-dev/examples/blob/main/python/controls/page/splash-test.py

Maybe we could rename it to something like overlay to make it more obvious?...

StanMathers commented 1 year ago

I see you utilized Stack to contain toasts. FYI: Page/View component is already a Stack and page.splash gives an access to one of its layers. Look at this example: https://github.com/flet-dev/examples/blob/main/python/controls/page/splash-test.py

Maybe we could rename it to something like overlay to make it more obvious?...

Maybe, seems a good idea. Just in case, can I have more precise details of what you mean? (Btw, I'm so sorry, this is my first pull request ever and I'm so confused)

FeodorFitsner commented 1 year ago

Never mind, I was thinking aloud :) I will give more thoughts on splash behavior and maybe get back to this.