Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 42917e4

Browse files
committed
fix cupertino button warning
1 parent 242db0a commit 42917e4

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Runtime/cupertino/button.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using RSG;
23
using Unity.UIWidgets.animation;
34
using Unity.UIWidgets.foundation;
45
using Unity.UIWidgets.gestures;
@@ -168,12 +169,10 @@ void _animate() {
168169
? this._animationController.animateTo(1.0f, duration: kFadeOutDuration)
169170
: this._animationController.animateTo(0.0f, duration: kFadeInDuration);
170171

171-
ticker.Then<VoidCallback>(() => {
172+
ticker.Then(() => {
172173
if (this.mounted && wasHeldDown != this._buttonHeldDown) {
173174
this._animate();
174175
}
175-
176-
return null;
177176
});
178177
}
179178

Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)