|
|
|
|
|
|
); |
|
|
|
|
|
|
|
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) { |
|
|
|