88
99[ ![ GitHub followers] ( https://img.shields.io/github/followers/divshekhar.svg?style=social&label=Follow )] ( https://github.com/divshekhar/ )
1010
11+ ## Quick Start
12+
13+ ### Step 1: Include plugin to your project
14+
15+ ``` yml
16+ dependencies :
17+ flutter_shortcuts : <latest version>
18+ ` ` `
19+
20+ Run pub get and get packages.
21+
22+ ### Step 2: Instantiate Flutter Shortcuts Plugin
23+
24+ ` ` ` dart
25+ final FlutterShortcuts flutterShortcuts = FlutterShortcuts();
26+ ```
27+
28+ ### Step 3: Initialize Flutter Shortcuts
29+
30+ ``` dart
31+ flutterShortcuts.initialize((String incomingAction) {
32+ setState(() {
33+ if (incomingAction != null) {
34+ action = incomingAction;
35+ }
36+ });
37+ });
38+ ```
39+
1140## Arguments
1241
13- There are several options that allow for more control:
42+ There are several function that allow for more control:
1443
1544| Properties | Description |
1645| --------------| -----------------|
17- | ` initialize ` | performs action when shortcut is initiated. |
46+ | ` initialize ` | performs action when shortcut is initiated.|
1847| ` getMaxShortcutLimit ` | returns the maximum number of static or dynamic shortcuts that each launcher icon can have at a time. |
1948| ` setShortcutItems ` | will set all the shortcut items. |
2049| ` clearShortcutItems ` | will remove all the shortcut items.|
@@ -32,7 +61,7 @@ There are several options that allow for more control:
3261
3362### Subham Praharaj
3463
35- <a href =" https://twitter.com/SubhamPraharaj6 " ><img src =" https://github.com/aritraroy/social-icons/blob/master/twitter-icon.png?raw=true " width =" 60 " ></a > <a href =" https://instagram.com/the_champ_subham_865 " ><img src =" https://github.com/aritraroy/social-icons/blob/master/instagram-icon.png?raw=true " width =" 60 " ></a >
64+ <a href =" https://twitter.com/SubhamPraharaj6 " ><img src =" https://github.com/aritraroy/social-icons/blob/master/twitter-icon.png?raw=true " width =" 60 " ></a > <a href =" https://www.linkedin.com/in/subham-praharaj-66b172179/ " >< img src = " https://github.com/aritraroy/social-icons/blob/master/linkedin-icon.png?raw=true " width = " 60 " ></ a > < a href = " https:// instagram.com/the_champ_subham_865" ><img src =" https://github.com/aritraroy/social-icons/blob/master/instagram-icon.png?raw=true " width =" 60 " ></a >
3665
3766## Copyright & License
3867
0 commit comments