You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handling keyboard inputs in Flet often requires a lot of custom logic handling. My idea is a centralized class for managing these inputs.
I created a proof of concept to demonstrate the idea. Pressing CTRL + Left Arrow or CTRL + Right Arrow moves between views. Each view has a Flet Container with random color background and a text indicating the number of the view.
My prototype is very crud and could be improved:
Associating the class with specific controls.
Integrate with other forms of inputs (touch, mouse, etc.).
Hopefully this idea and proof of concept will be of use.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Handling keyboard inputs in Flet often requires a lot of custom logic handling. My idea is a centralized class for managing these inputs.
I created a proof of concept to demonstrate the idea. Pressing CTRL + Left Arrow or CTRL + Right Arrow moves between views. Each view has a Flet Container with random color background and a text indicating the number of the view.
My prototype is very crud and could be improved:
Hopefully this idea and proof of concept will be of use.
Thank you and have a fantastic day!
Beta Was this translation helpful? Give feedback.
All reactions