Skip to content

Commit fa1fc87

Browse files
committed
README.md Updated
1 parent 59cabe4 commit fa1fc87

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,18 @@ Run pub get and get packages.
4848
final FlutterShortcuts flutterShortcuts = FlutterShortcuts();
4949
```
5050

51+
### Step 3: Initialize Flutter Shortcuts
52+
53+
```dart
54+
flutterShortcuts.initialize(debug: true);
55+
```
56+
5157
## Example
5258

5359
### Define Shortcut Action
5460

5561
```dart
56-
flutterShortcuts.initialize((String incomingAction) {
62+
flutterShortcuts.listenAction((String incomingAction) {
5763
setState(() {
5864
if (incomingAction != null) {
5965
action = incomingAction;

0 commit comments

Comments
 (0)