flutter_shortcut_intent_action_talk

Code for Flutter Talk from Flutter Vikings 2022: Custom User Interactions in Flutter

Stars
9

Custom User Interactions - Flutter Vikings 2022

A companion app for the Flutter Vikings 2022 talk - Custom User Interactions with Shortcuts, Intents, and Actions (slides). Contains live examples of all of the demos and quiz questions in the talk.

Run it live on the web at justinmc.github.io/flutter_shortcut_intent_action_talk/. Most demos require a physical keyboard.

Main demo: Flutter Paint

A simplified drawing app. Demonstrates Actions and Shortcuts in a real app, as well as text editing shortcuts with DefaultTextEditingShortcuts.

Use the dropdown in the AppBar to switch between code versions mentioned in the talk.

Other demos

  1. Actions demo - demonstrates Actions and Actions.invoke.
  2. Shortcuts demo - demonstrates Shortcuts and Actions together.
  3. TextField demo - demonstrates how Flutter manages keyboard shortcuts internally and how app developers can customize the default behavior.

Quiz questions

  1. Actions nested
  2. Actions nested with one empty
  3. Shortcuts nested
  4. Actions above and below Shortcuts
  5. TextField override

Repository maintenance

To publish to GitHub Pages, do the following:

  1. git checkout pages
  2. git merge main
  3. flutter build web
  4. Edit build/web/index.html and change the base href to "/flutter_shortcut_intent_action_talk/".
  5. cp -r build/web/ docs/
  6. git commit -am "Update GitHub Pages"
  7. git push
Related Projects