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.
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.
- flutter_overlay_window
Flutter plugin to display your app over other apps on the screen.
85Compare - app_widget
Manage Android home screen widgets from within Flutter.
55Compare - mailto
Create mailto URIs with support for multiple to, cc, bcc, subject, and body fields with encoding.
50Compare - screen_corner_radius
Provides the corner radius value of the current device screen for Android and iOS.
47Compare
Works with
Packages commonly used together with quick_actions: ones it builds on, ones built on it, and its own family.