|
|
|
|
|
|
public class FadeTransition : SingleChildRenderObjectWidget { |
|
|
|
public FadeTransition(Key key = null, Animation<float> opacity = null, |
|
|
|
Widget child = null) : base(key: key, child: child) { |
|
|
|
D.assert(opacity != null); |
|
|
|
this.opacity = opacity; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
float? widthFactor = null, |
|
|
|
float? heightFactor = null |
|
|
|
) : base(key: key, listenable: alignment) { |
|
|
|
D.assert(alignment != null); |
|
|
|
D.assert(child != null); |
|
|
|
this.child = child; |
|
|
|
this.widthFactor = widthFactor; |
|
|
|
this.heightFactor = heightFactor; |
|
|
|
|
|
|
Widget child = null) : |
|
|
|
base(key, animation) { |
|
|
|
D.assert(builder != null); |
|
|
|
D.assert(animation != null); |
|
|
|
this.builder = builder; |
|
|
|
this.child = child; |
|
|
|
} |
|
|
|