~/talk

Custom user interactions: building a desktop drawing app

Talkat Flutter Vikings 2022 · 2022-08-31..09-01· [flutter, frontend-architecture]
slides:none on file

A small desktop drawing app uses Flutter’s Shortcuts-Intents-Actions to wire keyboard commands to canvas operations, showing concrete fixes: use a lower BuildContext/Builder when calling actions.invoke, set Focus so traversal starts at the right node, and map platform keys with an adaptive shortcuts map. Editable text uses Actions.overridable, so default text intents can be overridden by app-level shortcuts, and web maps many keys to doNothingAndStopPropagation (browser input handles them). The final feature deletes characters while typing and deletes the mark only when the field is empty.

AI-written summary · about

  1. 0:00Introduction to shortcuts
  2. 2:20The problem with callbacks
  3. 5:39Intents and actions system
  4. 8:39Demoing actions and focus
  5. 13:12Implementing shortcut widgets
  6. 16:30Traversing the widget tree
  7. 19:12Building the drawing app
  8. 22:54Overriding built-in behaviors
  9. 28:07Customizing textfield behavior
  10. 32:47Web platform caveats
  11. 37:52Final implementation and summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.