Skip to content
pubscout

quick_actions

1.1.1, released 2 months ago by flutter.dev

Flutter plugin for creating shortcuts on home screen, quick actions on iOS and app shortcuts on Android.

WASM-readyRock solid
$ flutter pub add quick_actions
Source repository

What it does

Allows you to manage and interact with application home screen quick actions. Provides methods to initialize shortcut callbacks and set shortcut items.

AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to add home screen shortcuts or quick actions on iOS and Android
  • You need to handle user interactions when launching the app via a quick action

Skip it when

  • Your app does not target Android SDK 24+ or iOS 13.0+
  • You do not need native home screen launcher shortcuts

Strengths

  • Native support for both Android App Shortcuts and iOS Quick Actions
  • Simple API to initialize and set shortcut items

Weaknesses

  • Requires native resource configuration for icons (xcassets on iOS and drawables on Android)
  • Behavior on Android is a no-op below SDK 25

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
3

On Android, icons may need to be explicitly marked to be kept for release builds. Minimum OS requirements: Android SDK 24+ and iOS 13.0+.

const quickActions = QuickActions();
quickActions.initialize((String shortcutType) {
  if (shortcutType == 'action_main') {
    debugPrint('The user tapped on the "Main view" action.');
  }
});

await quickActions.setShortcutItems(<ShortcutItem>[
  const ShortcutItem(type: 'action_main', localizedTitle: 'Main view', icon: 'icon_main'),
]);

Alternatives

Packages that do the same job and could replace quick_actions.

Works with

Packages commonly used together with quick_actions: ones it builds on, ones built on it, and its own family.