quick_actions_android 1.0.16 copy "quick_actions_android: ^1.0.16" to clipboard
quick_actions_android: ^1.0.16 copied to clipboard

An implementation for the Android platform of the Flutter `quick_actions` plugin.

quick_actions_android #

The Android implementation of quick_actions.

Usage #

This package is endorsed, which means you can simply use quick_actions normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Usage with launcher activities #

If your app implements an activity that launches the main FlutterActivity (MainActivity.java/MainActivity.kt by default), then you may need to change the launch mode of your launcher activity and/or modify the Intent flags used to launch the main FlutterActivity in order to achieve the desired back press behavior and task management.

If your launcher activity only launches the main FlutterActivity without any additional relevant logic (like the code sample provided in the description of https://github.com/flutter/flutter/issues/152883), to have your app maintain the same behavior of quick_actions_android with/without a launcher activity, set the launch mode of your launcher activity to singleInstance in your_app/android/app/src/mainAndroidManifest.xml:

<activity
        ...
        android:launchMode="singleInstance">

See the Tasks and the back stack Android documentation for more information on the different launch modes and Intent flags you may need.

Contributing #

If you would like to contribute to the plugin, check out our contribution guide.

1
likes
0
pub points
84%
popularity

Publisher

verified publisherflutter.dev

An implementation for the Android platform of the Flutter `quick_actions` plugin.

Repository (GitHub)
View/report issues

Topics

#quick-actions #os-integration

License

unknown (license)

Dependencies

flutter, quick_actions_platform_interface

More

Packages that depend on quick_actions_android