Skip to content

[quick_actions] add localizedSubtitle for iOS #8038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
929fdea
[quick_actions] add localizedSubtitle for iOS
GiacomoPignoni Jun 23, 2024
4bea2bc
test and changelog
GiacomoPignoni Jun 23, 2024
fd8a73a
add deps override
GiacomoPignoni Jun 26, 2024
4cba4da
update ios changelog
GiacomoPignoni Jun 26, 2024
1886a75
update platform interface changelog
GiacomoPignoni Jun 26, 2024
3dd729f
Merge branch 'main' into quick_action/subtitle
sinyu1012 Nov 8, 2024
bf72048
update changelog
sinyu1012 Nov 8, 2024
a0ac67e
revert quick_actions_android changes
sinyu1012 Nov 8, 2024
ce569d9
opt QuickActionsPlugin
sinyu1012 Nov 8, 2024
2bf8256
update notes
sinyu1012 Nov 8, 2024
f644114
update quick_actions_ios example & UITests
sinyu1012 Nov 13, 2024
4b38b32
format quick_actions_ios/messages.g.swift
sinyu1012 Nov 13, 2024
54e0a39
format swift
sinyu1012 Nov 13, 2024
550dfe3
Update packages/quick_actions/quick_actions_android/example/pubspec.yaml
sinyu1012 Nov 15, 2024
977992e
Update packages/quick_actions/quick_actions_android/pubspec.yaml
sinyu1012 Nov 15, 2024
3568750
update quick_actions example code
sinyu1012 Nov 15, 2024
9fca7cf
Merge branch 'main' into quick_action/subtitle
sinyu1012 Nov 22, 2024
ee8dc3f
update dependencies
sinyu1012 Nov 22, 2024
efb9975
format code
sinyu1012 Nov 22, 2024
8782df8
format code
sinyu1012 Nov 22, 2024
52eb23b
update version
sinyu1012 Nov 22, 2024
4783ff8
Merge branch 'main' into quick_action/subtitle
sinyu1012 Dec 10, 2024
8d663b7
Merge branch 'main' into quick_action/subtitle
sinyu1012 Dec 11, 2024
f42fb39
update dependencies
sinyu1012 Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/quick_actions/quick_actions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.0

* Adds localizedSubtitle field for iOS quick actions.

## 1.0.8

* Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
Expand Down
2 changes: 1 addition & 1 deletion packages/quick_actions/quick_actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Finally, manage the app's quick actions, for instance:
```dart
quickActions.setShortcutItems(<ShortcutItem>[
const ShortcutItem(type: 'action_main', localizedTitle: 'Main view', icon: 'icon_main'),
const ShortcutItem(type: 'action_help', localizedTitle: 'Help', icon: 'icon_help')
const ShortcutItem(type: 'action_help', localizedTitle: 'Help', localizedSubtitle: 'Tap to get help', icon: 'icon_help')
]);
```

Expand Down
8 changes: 5 additions & 3 deletions packages/quick_actions/quick_actions/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ class _MyHomePageState extends State<MyHomePage> {
const ShortcutItem(
type: 'action_one',
localizedTitle: 'Action one',
localizedSubtitle: 'Action one subtitle',
icon: 'AppIcon',
),
// NOTE: This second action icon will only work on Android.
// In a real world project keep the same file name for both platforms.
const ShortcutItem(
type: 'action_two',
localizedTitle: 'Action two',
icon: 'ic_launcher'),
type: 'action_two',
localizedTitle: 'Action two',
icon: 'ic_launcher',
),
]).then((void _) {
setState(() {
if (shortcut == 'no action set') {
Expand Down
6 changes: 3 additions & 3 deletions packages/quick_actions/quick_actions/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for creating shortcuts on home screen, also known as
Quick Actions on iOS and App Shortcuts on Android.
repository: https://github.com/flutter/packages/tree/main/packages/quick_actions/quick_actions
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+quick_actions%22
version: 1.0.8
version: 1.1.0

environment:
sdk: ^3.3.0
Expand All @@ -21,8 +21,8 @@ dependencies:
flutter:
sdk: flutter
quick_actions_android: ^1.0.0
quick_actions_ios: ^1.0.0
quick_actions_platform_interface: ^1.0.0
quick_actions_ios: ^1.2.0
quick_actions_platform_interface: ^1.1.0

dev_dependencies:
flutter_test:
Expand Down
Loading