Skip to content

Commit

Permalink
修复开屏无回调异常
Browse files Browse the repository at this point in the history
  • Loading branch information
gstory0404 committed Feb 14, 2023
1 parent a8c94a7 commit 1ee7ee9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.0.7
* 修复开屏无回调异常

## 0.0.6
* fix bug

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
quakerbirdad:
git:
url: https://github.com/gstory0404/quakerbirdad.git
ref: 0.0.6
ref: 0.0.7
```

引入
Expand Down
10 changes: 4 additions & 6 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,10 @@ packages:
quakerbirdad:
dependency: "direct main"
description:
path: "."
ref: "0.0.5"
resolved-ref: "12d99b44136be15caed3e6e56a5e319e46d1fb33"
url: "https://github.com/gstory0404/quakerbirdad.git"
source: git
version: "0.0.5"
path: ".."
relative: true
source: path
version: "0.0.6"
sky_engine:
dependency: transitive
description: flutter
Expand Down
8 changes: 4 additions & 4 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ dependencies:
flutter:
sdk: flutter
quakerbirdad:
# path: ../
git:
url: https://github.com/gstory0404/quakerbirdad.git
ref: 0.0.5
path: ../
# git:
# url: https://github.com/gstory0404/quakerbirdad.git
# ref: 0.0.5

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down
4 changes: 0 additions & 4 deletions lib/widget/splash_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,9 @@ class _QuakerBirdAdSplashState extends State<QuakerBirdAdSplash> {
Future<dynamic> _platformCallHandler(MethodCall call) async {
switch (call.method) {
case QuakerBirdAdMethod.onShow:
Map map = call.arguments;
if (mounted) {
setState(() {
_isShowAd = true;
_width = map["width"];
_height = map["height"];
print("$_width == $_height");
});
if (widget.callBack?.onShow != null) {
widget.callBack?.onShow!();
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: quakerbirdad
description: Flutter信天翁广告插件
version: 0.0.6
version: 0.0.7
homepage: https://github.com/gstory0404/quakerbirdad

environment:
Expand Down

0 comments on commit 1ee7ee9

Please sign in to comment.