Skip to content

Commit

Permalink
Merge pull request #17 from noxasch/15-reloadwidgets-doesnt-use-initi…
Browse files Browse the repository at this point in the history
…alized-androidpackagename

fix: reloadWigdet to use initialized androidPackageName
  • Loading branch information
noxasch authored Sep 27, 2022
2 parents 8901532 + b9a0777 commit b434e08
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions app_widget/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.2

* fix(android): `reloadWidgets` to use initialized `androidPackageName`

## 0.2.1

* fix(android): onClickWidget callback should be independent on each widget
Expand Down
3 changes: 0 additions & 3 deletions app_widget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ await appWidgetPlugin.configureWidget(...)
#### handling onConfigureWidget

```dart
// @pragma('vm:entry-point') anonnotate is to indicate thate the method may be invoked directly from native
// More info: https://github.com/dart-lang/sdk/blob/master/runtime/docs/compiler/aot/entry_point_pragma.md
// this method can be declare as a top level function or inside a widget as a member function
@pragma('vm:entry-point')
void onConfigureWidget(int widgetId) async {
Expand Down Expand Up @@ -251,7 +249,6 @@ await appWidgetPlugin.cancelConfigure()

```dart
// this method can be declare as a top level function or inside a widget
@pragma('vm:entry-point')
void onClickWidget(String? payload) {
// handle click widget event
// eg:
Expand Down
2 changes: 1 addition & 1 deletion app_widget/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.1"
version: "0.2.2"
app_widget_android:
dependency: transitive
description:
Expand Down
3 changes: 1 addition & 2 deletions app_widget/lib/src/app_widget_plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ class AppWidgetPlugin {
///
Future<bool?> reloadWidgets({
String? androidProviderName,
String? androidPackageName,
}) async {
return AppWidgetPlatform.instance.reloadWidgets(
androidPackageName: androidPackageName,
androidPackageName: _androidPackageName,
androidProviderName: androidProviderName,
);
}
Expand Down
2 changes: 1 addition & 1 deletion app_widget/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: app_widget
description: Flutter plugin to manage app widget / home screen widget from within flutter app.
version: 0.2.1
version: 0.2.2
homepage: https://noxasch.tech/
repository: https://github.com/noxasch/flutter_app_widget/tree/master/app_widget
issue_tracker: https://github.com/noxasch/flutter_app_widget/issues
Expand Down

0 comments on commit b434e08

Please sign in to comment.