Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
noxasch committed Sep 22, 2022
1 parent c155f4c commit cbae1da
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
31 changes: 19 additions & 12 deletions app_widget/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import 'dart:convert';
import 'dart:math';

import 'package:flutter/material.dart';

import 'package:app_widget/app_widget.dart';
Expand Down Expand Up @@ -124,12 +127,14 @@ class UpdateWidgetButton extends StatelessWidget {

// send configure
await _appWidgetPlugin.updateWidget(
widgetId: widgetId,
widgetLayout: 'example_layout',
textViews: {
'widget_title': 'App Widget',
'widget_message': 'Updated in flutter'
});
widgetId: widgetId,
widgetLayout: 'example_layout',
textViews: {
'widget_title': 'App Widget',
'widget_message': 'Updated in flutter'
},
payload: jsonEncode({'number': Random.secure().nextInt(10)}),
);
}
},
child: const Text('Update Widget'),
Expand Down Expand Up @@ -254,12 +259,14 @@ class ConfigureButton extends StatelessWidget {

// send configure
await _appWidgetPlugin.configureWidget(
widgetId: _widgetId!,
widgetLayout: 'example_layout',
textViews: {
'widget_title': 'App Widget',
'widget_message': 'Configured in flutter'
});
widgetId: _widgetId!,
widgetLayout: 'example_layout',
textViews: {
'widget_title': 'App Widget',
'widget_message': 'Configured in flutter'
},
payload: jsonEncode({'number': Random().nextInt(10)}),
);
messenger.showSnackBar(
const SnackBar(content: Text('Widget has been configured!')));
} else {
Expand Down
4 changes: 2 additions & 2 deletions app_widget/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
app_widget_android:
dependency: transitive
description:
name: app_widget_android
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
version: "0.2.1"
app_widget_platform_interface:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions 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.0
version: 0.2.1
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 All @@ -14,7 +14,7 @@ dependencies:
sdk: flutter
plugin_platform_interface: ^2.0.2
app_widget_platform_interface: ^0.2.0
app_widget_android: ^0.2.0
app_widget_android: ^0.2.1
# app_widget_platform_interface: # local dev
# path: ../app_widget_platform_interface
# app_widget_android: # local dev
Expand Down

0 comments on commit cbae1da

Please sign in to comment.