Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit ce1cf17

Browse files
authored
[quick_actions] example fix (#3745)
1 parent e9ed3cd commit ce1cf17

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/quick_actions/quick_actions/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.0+1
2+
3+
* Updated example app implementation.
4+
15
## 0.5.0
26

37
* Migrate to null safety.

packages/quick_actions/quick_actions/example/lib/main.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MyHomePage extends StatefulWidget {
3232
}
3333

3434
class _MyHomePageState extends State<MyHomePage> {
35-
String shortcut = "no action set";
35+
String shortcut = 'no action set';
3636

3737
@override
3838
void initState() {
@@ -63,7 +63,9 @@ class _MyHomePageState extends State<MyHomePage> {
6363
icon: 'ic_launcher'),
6464
]).then((value) {
6565
setState(() {
66-
shortcut = "actions ready";
66+
if (shortcut == 'no action set') {
67+
shortcut = 'actions ready';
68+
}
6769
});
6870
});
6971
}

packages/quick_actions/quick_actions/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: quick_actions
22
description: Flutter plugin for creating shortcuts on home screen, also known as
33
Quick Actions on iOS and App Shortcuts on Android.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/quick_actions
5-
version: 0.5.0
5+
version: 0.5.0+1
66

77
flutter:
88
plugin:

0 commit comments

Comments
 (0)