Skip to content

Commit 781deb2

Browse files
committed
docs: update docs
1 parent 3a103d9 commit 781deb2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

app_widget/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ Which by you can handle this in flutter using:
4848

4949
##### Android Flavor support
5050

51-
As of version 0.1.0, this plugin support flavor and there are
52-
no special configuration needed.
51+
simply include main android package name use by the MainActivity without flavor prefix.
52+
Otherwise just omit the packageName as it will use your default package name.
53+
54+
```dart
55+
final appWidgetPlugin = AppWidgetPlugin(
56+
androidPackageName: 'tech.noxasch.app_widget_example',
57+
);
58+
```
5359

5460
##### Android Setup
5561

@@ -464,7 +470,7 @@ void main() {
464470
isMethodCall(
465471
'configureWidget',
466472
arguments: <String, Object>{
467-
'androidPackageName': 'appname',
473+
'androidPackageName': 'appname', // androidPackageName is included behind the scene
468474
'widgetId': 1,
469475
'widgetLayout': 'layoutname',
470476
'textViews': {},

0 commit comments

Comments
 (0)