Package selection guidance compiled from public package information, community data, and project usage.
The intelligence package is a Flutter plugin that enables iOS apps to integrate with Apple's AppIntents framework, allowing deeper interaction with Siri, the Shortcuts app, and Apple Intelligence. It lets users trigger app actions via voice commands or shortcuts, enhancing accessibility and automation. The plugin simplifies the process of exposing app functionality to Apple’s ecosystem by providing Dart-level APIs for defining intents, parameters, and outcomes. It is designed specifically for iOS and requires adherence to Apple’s AppIntents guidelines.
Use cases
Enable Siri voice commands for app actions
Integrate with the Shortcuts app
Support Apple Intelligence features
Allow users to automate tasks
Enhance app discoverability in Apple ecosystem
Key features
Seamless Apple AppIntents integration
Dart API for defining intents
Supports Siri and Shortcuts
iOS-only platform compatibility
Easy setup with Flutter pub add
Suitable for
iOS developers targeting Apple Intelligence
Apps needing voice command support
Automation-focused applications
Developers using Flutter on iOS
Apps aiming for deeper Siri integration
Considerations
Requires iOS 17+
Limited to Apple's ecosystem
Needs AppIntents configuration in Xcode
Not compatible with Android
Dependent on Apple's evolving AppIntents framework
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Intelligence
Add support for Apple's AppIntents framework to your Flutter application. For details on how to add integration with Siri, Shortcuts app, and Apple Intelligence, see Recipes.
Installation
Copy and paste the following snippet into your shell when in the target project directory.
dart pub add intelligence
Usage
To add support for AppIntents framework, you will have to perform one-time setup which differs for different use-cases. See Recipes for more details.
iOS Configuration
After installing the package, you need to set the minimum iOS version to 16.0 on XCode.
For more details, follow these steps:
Open the iOS project in Xcode
Click on Runner & then general tab
Under the General tab & minimum deployments section, set the iOS version to atleast 16.0
Once set up, the plugin will let you act on each App Intent trigger.
E.g. while setting the selection listener in a Stateful widget: