diff --git a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart index 6c39ace8245b..a00bbee91b1e 100644 --- a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart +++ b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart @@ -53,10 +53,10 @@ class _OverflowRegionData { /// ```dart /// class MyRenderObject extends RenderAligningShiftedBox with DebugOverflowIndicatorMixin { /// MyRenderObject({ -/// AlignmentGeometry alignment = Alignment.center, -/// TextDirection? textDirection, -/// RenderBox? child, -/// }) : super.mixin(alignment, textDirection, child); +/// super.alignment = Alignment.center, +/// required super.textDirection, +/// super.child, +/// }); /// /// late Rect _containerRect; /// late Rect _childRect; diff --git a/packages/flutter/lib/src/rendering/shifted_box.dart b/packages/flutter/lib/src/rendering/shifted_box.dart index b4a44a817c70..3c257c4df7b9 100644 --- a/packages/flutter/lib/src/rendering/shifted_box.dart +++ b/packages/flutter/lib/src/rendering/shifted_box.dart @@ -291,12 +291,6 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox { _textDirection = textDirection, super(child); - /// A constructor to be used only when the extending class also has a mixin. - // TODO(gspencer): Remove this constructor once https://github.com/dart-lang/sdk/issues/31543 is fixed. - @protected - RenderAligningShiftedBox.mixin(AlignmentGeometry alignment, TextDirection? textDirection, RenderBox? child) - : this(alignment: alignment, textDirection: textDirection, child: child); - Alignment? _resolvedAlignment; void _resolve() { @@ -707,17 +701,16 @@ class RenderConstraintsTransformBox extends RenderAligningShiftedBox with DebugO /// /// The [alignment] and [clipBehavior] must not be null. RenderConstraintsTransformBox({ - required AlignmentGeometry alignment, - required TextDirection? textDirection, + required super.alignment, + required super.textDirection, required BoxConstraintsTransform constraintsTransform, - RenderBox? child, + super.child, Clip clipBehavior = Clip.none, }) : assert(alignment != null), assert(clipBehavior != null), assert(constraintsTransform != null), _constraintsTransform = constraintsTransform, - _clipBehavior = clipBehavior, - super.mixin(alignment, textDirection, child); + _clipBehavior = clipBehavior; /// {@macro flutter.widgets.constraintsTransform} BoxConstraintsTransform get constraintsTransform => _constraintsTransform;