File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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': {},
You can’t perform that action at this time.
0 commit comments