Skip to content

Commit dea6a08

Browse files
authored
Remove legacy and deprecated defaultClipBehavior (flutter#7439)
The defaultClipBehavior is no longer used anywhere in the Flutter framework and Google3.
1 parent 5749b75 commit dea6a08

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

lib/ui/compositing.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class SceneBuilder extends NativeFieldWrapperClass2 {
181181
///
182182
/// See [pop] for details about the operation stack, and [Clip] for different clip modes.
183183
// ignore: deprecated_member_use
184-
EngineLayer pushPhysicalShape({ Path path, double elevation, Color color, Color shadowColor, Clip clipBehavior = defaultClipBehavior}) {
184+
EngineLayer pushPhysicalShape({ Path path, double elevation, Color color, Color shadowColor, Clip clipBehavior = Clip.none}) {
185185
return _pushPhysicalShape(path, elevation, color.value, shadowColor?.value ?? 0xFF000000, clipBehavior.index);
186186
}
187187
EngineLayer _pushPhysicalShape(Path path, double elevation, int color, int shadowColor, int clipBehavior) native

lib/ui/painting.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,14 +1018,6 @@ enum Clip {
10181018
antiAliasWithSaveLayer,
10191019
}
10201020

1021-
/// The global default value of whether and how to clip a widget. This is only for
1022-
/// temporary migration from default-to-clip to default-to-NOT-clip.
1023-
///
1024-
// TODO(liyuqian): Set it to Clip.none. (https://github.com/flutter/flutter/issues/18057)
1025-
// We currently have Clip.antiAlias to preserve our old behaviors.
1026-
@Deprecated("Do not use this as it'll soon be removed after we set the default behavior to Clip.none.")
1027-
const Clip defaultClipBehavior = Clip.antiAlias;
1028-
10291021
// If we actually run on big endian machines, we'll need to do something smarter
10301022
// here. We don't use [Endian.Host] because it's not a compile-time
10311023
// constant and can't propagate into the set/get calls.

0 commit comments

Comments
 (0)