Questions tagged [flutter-shortcuts]

5 questions
7
votes
2 answers

How to handle keyboard shortcuts

I'm writing a Flutter app and want to handle keyboard shortcuts like Ctrl+I in the web version of the app. Small disclaimer: Looks like the Flutter API around shortcuts has changed recently. The online documentation that I found was outdated. I'm…
Fox32
  • 13,126
  • 9
  • 50
  • 71
3
votes
0 answers

How to register app-global actions in flutter using Shortcuts/Intent/Actions?

Using the Shortcuts and Actions widget it is easy to add actions which are invoked while the focus is below the actual Actions widget. But in my use case I have a master/detail view layout where I want the master view handle shortcuts (like 'next…
Herbert Poul
  • 4,512
  • 2
  • 31
  • 48
3
votes
2 answers

Make mutiple single-line strings shortcut Flutter

I'm just wondering if there is any shortcut to making multiple lines into separate strings. I was making a list and copied in data from worldtimeapi.com, in the format: List placeList = [""" Africa/Abidjan Africa/Accra …
0
votes
0 answers

Is there a way to execute default TextField key event handler from Action

I have a textfield which has an ancester (maybe multiple) of type Action, which every one of them has a minimum of one ancestor of type Shortcut. One intent shortcut defined is the one that catches any of the four arrow key pressed. I want to…
A.A
  • 13
  • 1
  • 4
0
votes
1 answer

How to add flutter packages to pubspec.yaml automatically in vscode

How do I flutter packages to the pubspec.yaml file without going directly to the pubspec.yaml file. I want to be able to add packages without leaving the current page I am working on. I have seen this done in several tutorials and I want to know how…