浏览代码

Merge pull request #328 from IIzzaya/cupertino

[Bug] Fix CupertinoRoutePage Error
/main
GitHub 5 年前
当前提交
cf2e6fb7
共有 2 个文件被更改,包括 9 次插入7 次删除
  1. 14
      Runtime/cupertino/route.cs
  2. 2
      Runtime/widgets/routes.cs

14
Runtime/cupertino/route.cs


);
public static readonly DecorationTween _kGradientShadowTween = new DecorationTween(
begin: _CupertinoEdgeShadowDecoration.none,
end: new _CupertinoEdgeShadowDecoration(
edgeGradient: new LinearGradient(
begin: new Alignment(0.9f, 0.0f),

barrierDismissible: false,
barrierColor: _kModalBarrierColor,
transitionDuration: new TimeSpan(0, 0, 0, 0, 250),
pageBuilder: (BuildContext _context, Animation<float> animation, Animation<float> secondaryAnimation) => {
pageBuilder:
(BuildContext _context, Animation<float> animation, Animation<float> secondaryAnimation) => {
return builder(_context);
},
transitionBuilder: _buildCupertinoDialogTransitions

public readonly LinearGradient edgeGradient;
static _CupertinoEdgeShadowDecoration lerp(
static _CupertinoEdgeShadowDecoration lerpCupertino(
_CupertinoEdgeShadowDecoration a,
_CupertinoEdgeShadowDecoration b,
float t

public override Decoration lerpFrom(Decoration a, float t) {
if (!(a is _CupertinoEdgeShadowDecoration)) {
return lerp(null, this, t);
return lerpCupertino(null, this, t);
return lerp(a, this, t);
return lerpCupertino((_CupertinoEdgeShadowDecoration) a, this, t);
return lerp(this, null, t);
return lerpCupertino(this, null, t);
return lerp(this, b, t);
return lerpCupertino(this, (_CupertinoEdgeShadowDecoration) b, t);
}
public override BoxPainter createBoxPainter(VoidCallback onChanged = null) {

2
Runtime/widgets/routes.cs


this._willPopCallbacks.Remove(callback);
}
protected internal bool hasScopedWillPopCallback {
public bool hasScopedWillPopCallback {
get { return this._willPopCallbacks.isNotEmpty(); }
}

正在加载...
取消
保存