Skip to content

Commit d9efa5b

Browse files
Merge pull request #13 from dingzuhua2017/master
fix bug
2 parents 956ab0b + bf37767 commit d9efa5b

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

example/pubspec.lock

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ packages:
7979
flutter_aes_ecb_pkcs5:
8080
dependency: transitive
8181
description:
82-
path: "."
83-
ref: master
84-
resolved-ref: "5af982b8bc604258462efc808f9ac3d3ecfc7062"
85-
url: "[email protected]:polkawallet-io/flutter_aes_ecb_pkcs5.git"
86-
source: git
82+
path: "../../flutter_aes_ecb_pkcs5"
83+
relative: true
84+
source: path
8785
version: "0.1.1"
8886
flutter_inappwebview:
8987
dependency: transitive

lib/service/staking.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ class ServiceStaking {
5252
}
5353

5454
Future<int?> getSlashingSpans(String stashId) async {
55-
final int? spans = await (serviceRoot.webView!
56-
.evalJavascript('staking.getSlashingSpans(api, "$stashId")')
57-
as FutureOr<int?>);
55+
final dynamic spans = await serviceRoot.webView!
56+
.evalJavascript('staking.getSlashingSpans(api, "$stashId")');
5857
return spans;
5958
}
6059
}

pubspec.lock

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,9 @@ packages:
205205
flutter_aes_ecb_pkcs5:
206206
dependency: "direct main"
207207
description:
208-
path: "."
209-
ref: master
210-
resolved-ref: "5af982b8bc604258462efc808f9ac3d3ecfc7062"
211-
url: "[email protected]:polkawallet-io/flutter_aes_ecb_pkcs5.git"
212-
source: git
208+
path: "../flutter_aes_ecb_pkcs5"
209+
relative: true
210+
source: path
213211
version: "0.1.1"
214212
flutter_inappwebview:
215213
dependency: "direct main"

pubspec.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ dependencies:
1717
get_storage: ^2.0.3
1818
json_annotation: ^4.0.1
1919
flutter_aes_ecb_pkcs5:
20-
git:
21-
url: https://github.com/polkawallet-io/flutter_aes_ecb_pkcs5.git
22-
ref: master
20+
path: ../flutter_aes_ecb_pkcs5
21+
# git:
22+
# url: https://github.com/polkawallet-io/flutter_aes_ecb_pkcs5.git
23+
# ref: master
2324

2425
convert: ^3.0.1
2526
mobx: ^2.0.4

0 commit comments

Comments
 (0)