Unverified Commit 23ea5120 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Remove deprecated Overflow and Stack.overflow (#98583)

parent 8f58af8b
...@@ -270,24 +270,6 @@ enum StackFit { ...@@ -270,24 +270,6 @@ enum StackFit {
passthrough, passthrough,
} }
/// Whether overflowing children should be clipped, or their overflow be
/// visible.
///
/// Deprecated. Use [Stack.clipBehavior] instead.
@Deprecated(
'Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. '
'This feature was deprecated after v1.22.0-12.0.pre.',
)
enum Overflow {
/// Overflowing children will be visible.
///
/// The visible overflow area will not accept hit testing.
visible,
/// Overflowing children will be clipped to the bounds of their parent.
clip,
}
/// Implements the stack layout algorithm. /// Implements the stack layout algorithm.
/// ///
/// In a stack layout, the children are positioned on top of each other in the /// In a stack layout, the children are positioned on top of each other in the
......
...@@ -46,7 +46,6 @@ export 'package:flutter/rendering.dart' show ...@@ -46,7 +46,6 @@ export 'package:flutter/rendering.dart' show
MouseCursor, MouseCursor,
SystemMouseCursors, SystemMouseCursors,
MultiChildLayoutDelegate, MultiChildLayoutDelegate,
Overflow,
PaintingContext, PaintingContext,
PointerCancelEvent, PointerCancelEvent,
PointerCancelEventListener, PointerCancelEventListener,
...@@ -3711,11 +3710,6 @@ class Stack extends MultiChildRenderObjectWidget { ...@@ -3711,11 +3710,6 @@ class Stack extends MultiChildRenderObjectWidget {
this.alignment = AlignmentDirectional.topStart, this.alignment = AlignmentDirectional.topStart,
this.textDirection, this.textDirection,
this.fit = StackFit.loose, this.fit = StackFit.loose,
@Deprecated(
'Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. '
'This feature was deprecated after v1.22.0-12.0.pre.',
)
this.overflow = Overflow.clip,
this.clipBehavior = Clip.hardEdge, this.clipBehavior = Clip.hardEdge,
List<Widget> children = const <Widget>[], List<Widget> children = const <Widget>[],
}) : assert(clipBehavior != null), }) : assert(clipBehavior != null),
...@@ -3756,24 +3750,6 @@ class Stack extends MultiChildRenderObjectWidget { ...@@ -3756,24 +3750,6 @@ class Stack extends MultiChildRenderObjectWidget {
/// ([StackFit.expand]). /// ([StackFit.expand]).
final StackFit fit; final StackFit fit;
/// Whether overflowing children should be clipped. See [Overflow].
///
/// Some children in a stack might overflow its box. When this flag is set to
/// [Overflow.clip], children cannot paint outside of the stack's box.
///
/// When set to [Overflow.visible], the visible overflow area will not accept
/// hit testing.
///
/// This overrides [clipBehavior] for now due to a staged roll out.
/// We will remove it and only use [clipBehavior] soon.
///
/// Deprecated. Use [clipBehavior] instead.
@Deprecated(
'Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. '
'This feature was deprecated after v1.22.0-12.0.pre.',
)
final Overflow overflow;
/// {@macro flutter.material.Material.clipBehavior} /// {@macro flutter.material.Material.clipBehavior}
/// ///
/// Defaults to [Clip.hardEdge]. /// Defaults to [Clip.hardEdge].
...@@ -3798,7 +3774,7 @@ class Stack extends MultiChildRenderObjectWidget { ...@@ -3798,7 +3774,7 @@ class Stack extends MultiChildRenderObjectWidget {
alignment: alignment, alignment: alignment,
textDirection: textDirection ?? Directionality.maybeOf(context), textDirection: textDirection ?? Directionality.maybeOf(context),
fit: fit, fit: fit,
clipBehavior: overflow == Overflow.visible ? Clip.none : clipBehavior, clipBehavior: clipBehavior,
); );
} }
...@@ -3809,7 +3785,7 @@ class Stack extends MultiChildRenderObjectWidget { ...@@ -3809,7 +3785,7 @@ class Stack extends MultiChildRenderObjectWidget {
..alignment = alignment ..alignment = alignment
..textDirection = textDirection ?? Directionality.maybeOf(context) ..textDirection = textDirection ?? Directionality.maybeOf(context)
..fit = fit ..fit = fit
..clipBehavior = overflow == Overflow.visible ? Clip.none : clipBehavior; ..clipBehavior = clipBehavior;
} }
@override @override
......
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