diff --git a/packages/flutter/lib/src/widgets/transitions.dart b/packages/flutter/lib/src/widgets/transitions.dart index 9c02b8174e..5083e4c316 100644 --- a/packages/flutter/lib/src/widgets/transitions.dart +++ b/packages/flutter/lib/src/widgets/transitions.dart @@ -99,10 +99,10 @@ class _AnimatedState extends State { class SlideTransition extends AnimatedWidget { /// Creates a fractional translation transition. /// - /// The [position] argument is required. + /// The [position] argument must not be null. SlideTransition({ Key key, - Animation position, + @required Animation position, this.transformHitTests: true, this.child, }) : super(key: key, listenable: position); @@ -138,11 +138,11 @@ class SlideTransition extends AnimatedWidget { class ScaleTransition extends AnimatedWidget { /// Creates a scale transition. /// - /// The [scale] argument is required. The [alignment] argument defaults to - /// [FractionalOffset.center]. + /// The [scale] argument must not be null. The [alignment] argument defaults + /// to [FractionalOffset.center]. ScaleTransition({ Key key, - Animation scale, + @required Animation scale, this.alignment: FractionalOffset.center, this.child, }) : super(key: key, listenable: scale); @@ -180,10 +180,10 @@ class ScaleTransition extends AnimatedWidget { class RotationTransition extends AnimatedWidget { /// Creates a rotation transition. /// - /// The [turns] argument is required. + /// The [turns] argument must not be null. RotationTransition({ Key key, - Animation turns, + @required Animation turns, this.child, }) : super(key: key, listenable: turns); @@ -215,13 +215,13 @@ class RotationTransition extends AnimatedWidget { class SizeTransition extends AnimatedWidget { /// Creates a size transition. /// - /// The [sizeFactor] argument is required. The [axis] argument defaults to - /// [Axis.vertical]. The [axisAlignment] defaults to 0.5, which centers the + /// The [sizeFactor] argument must not be null. The [axis] argument defaults + /// to [Axis.vertical]. The [axisAlignment] defaults to 0.5, which centers the /// child along the main axis during the transition. SizeTransition({ Key key, this.axis: Axis.vertical, - Animation sizeFactor, + @required Animation sizeFactor, this.axisAlignment: 0.5, this.child, }) : super(key: key, listenable: sizeFactor) { @@ -267,10 +267,10 @@ class SizeTransition extends AnimatedWidget { class FadeTransition extends AnimatedWidget { /// Creates an opacity transition. /// - /// The [opacity] argument is required. + /// The [opacity] argument must not be null. FadeTransition({ Key key, - Animation opacity, + @required Animation opacity, this.child, }) : super(key: key, listenable: opacity); @@ -319,10 +319,10 @@ class RelativeRectTween extends Tween { class PositionedTransition extends AnimatedWidget { /// Creates a transition for [Positioned]. /// - /// The [rect] argument is required. + /// The [rect] argument must not be null. PositionedTransition({ Key key, - Animation rect, + @required Animation rect, @required this.child, }) : super(key: key, listenable: rect); @@ -355,7 +355,7 @@ class RelativePositionedTransition extends AnimatedWidget { /// /// Each frame, the [Positioned] widget will be configured to represent the /// current value of the [rect] argument assuming that the stack has the given - /// [size]. Both [rect] and [size] must be non-null. + /// [size]. Both [rect] and [size] must not be null. RelativePositionedTransition({ Key key, @required Animation rect,