Unverified Commit d73b6571 authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

Remove `RenderAligningShiftedBox.mixin` (no longer needed) (#105177)

parent 82ae6121
...@@ -53,10 +53,10 @@ class _OverflowRegionData { ...@@ -53,10 +53,10 @@ class _OverflowRegionData {
/// ```dart /// ```dart
/// class MyRenderObject extends RenderAligningShiftedBox with DebugOverflowIndicatorMixin { /// class MyRenderObject extends RenderAligningShiftedBox with DebugOverflowIndicatorMixin {
/// MyRenderObject({ /// MyRenderObject({
/// AlignmentGeometry alignment = Alignment.center, /// super.alignment = Alignment.center,
/// TextDirection? textDirection, /// required super.textDirection,
/// RenderBox? child, /// super.child,
/// }) : super.mixin(alignment, textDirection, child); /// });
/// ///
/// late Rect _containerRect; /// late Rect _containerRect;
/// late Rect _childRect; /// late Rect _childRect;
......
...@@ -291,12 +291,6 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox { ...@@ -291,12 +291,6 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox {
_textDirection = textDirection, _textDirection = textDirection,
super(child); 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; Alignment? _resolvedAlignment;
void _resolve() { void _resolve() {
...@@ -707,17 +701,16 @@ class RenderConstraintsTransformBox extends RenderAligningShiftedBox with DebugO ...@@ -707,17 +701,16 @@ class RenderConstraintsTransformBox extends RenderAligningShiftedBox with DebugO
/// ///
/// The [alignment] and [clipBehavior] must not be null. /// The [alignment] and [clipBehavior] must not be null.
RenderConstraintsTransformBox({ RenderConstraintsTransformBox({
required AlignmentGeometry alignment, required super.alignment,
required TextDirection? textDirection, required super.textDirection,
required BoxConstraintsTransform constraintsTransform, required BoxConstraintsTransform constraintsTransform,
RenderBox? child, super.child,
Clip clipBehavior = Clip.none, Clip clipBehavior = Clip.none,
}) : assert(alignment != null), }) : assert(alignment != null),
assert(clipBehavior != null), assert(clipBehavior != null),
assert(constraintsTransform != null), assert(constraintsTransform != null),
_constraintsTransform = constraintsTransform, _constraintsTransform = constraintsTransform,
_clipBehavior = clipBehavior, _clipBehavior = clipBehavior;
super.mixin(alignment, textDirection, child);
/// {@macro flutter.widgets.constraintsTransform} /// {@macro flutter.widgets.constraintsTransform}
BoxConstraintsTransform get constraintsTransform => _constraintsTransform; BoxConstraintsTransform get constraintsTransform => _constraintsTransform;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment