Skip to content

Commit

Permalink
Changes for pre-release in pub
Browse files Browse the repository at this point in the history
Signed-off-by: Ayon Das <ayantorres@gmail.com>
  • Loading branch information
AyonAB committed Oct 25, 2020
1 parent 17e97b6 commit e33695d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@
## 0.0.5

* Fixed a bug where invokeMethod only accepting string as return value

## 0.0.6-dev.1

* Possible fix for callbacks throwing exception about type mismatch.
* invokeMethod now has generic return type & upto 10 arguments support.
8 changes: 4 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ class _MyAppState extends State<MyApp> {
);
}

_onStatusChange(String status) {
_onStatusChange(dynamic status) {
if (mounted) {
setState(() {
_signalRStatus = status;
_signalRStatus = status as String;
});
}
}
Expand All @@ -81,11 +81,11 @@ class _MyAppState extends State<MyApp> {

_buttonTapped() async {
final res = await signalR
.invokeMethod("<Your methodname here>", arguments: ['<Your arguments here>']).catchError((error) {
.invokeMethod<String>("<Your methodname here>", arguments: ['<Your arguments here>']).catchError((error) {
print(error.toString());
});
final snackBar =
SnackBar(content: Text('SignalR Method Response: ${res.toString()}'));
SnackBar(content: Text('SignalR Method Response: $res'));
_scaffoldKey.currentState.showSnackBar(snackBar);
}
}
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.5"
version: "0.0.6-dev.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: signalr_flutter
description: A flutter plugin for .net SignalR client. This client is for ASP.Net SignalR, not for .Net Core SignalR.
version: 0.0.5
version: 0.0.6-dev.1
homepage: https://github.com/AS-Devs/signalr_flutter

environment:
Expand Down

0 comments on commit e33695d

Please sign in to comment.