Skip to content

Commit b49ab60

Browse files
manu-sncfzemanux
andauthored
Add SliverClipRect and SliverClipRRect (flutter#179003)
Fix flutter#179002. ## Pre-launch Checklist - [X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [X] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [X] I signed the [CLA]. - [X] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [X] I added new tests to check the change I am making, or this PR is [test-exempt]. - [X] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md --------- Co-authored-by: zemanux <[email protected]>
1 parent 458c576 commit b49ab60

7 files changed

Lines changed: 2400 additions & 0 deletions

File tree

‎packages/flutter/lib/rendering.dart‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export 'src/rendering/selection.dart';
6565
export 'src/rendering/service_extensions.dart';
6666
export 'src/rendering/shifted_box.dart';
6767
export 'src/rendering/sliver.dart';
68+
export 'src/rendering/sliver_clip.dart';
6869
export 'src/rendering/sliver_fill.dart';
6970
export 'src/rendering/sliver_fixed_extent_list.dart';
7071
export 'src/rendering/sliver_grid.dart';

‎packages/flutter/lib/src/rendering/proxy_box.dart‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,8 @@ class RenderBackdropFilter extends RenderProxyBox {
13991399
/// * [ClipRRect], which can be customized with a [CustomClipper<RRect>].
14001400
/// * [ClipOval], which can be customized with a [CustomClipper<Rect>].
14011401
/// * [ClipPath], which can be customized with a [CustomClipper<Path>].
1402+
/// * [SliverClipRect], which can be customized with a [CustomClipper<Rect>].
1403+
/// * [SliverClipRRect], which can be customized with a [CustomClipper<RRect>].
14021404
/// * [ShapeBorderClipper], for specifying a clip path using a [ShapeBorder].
14031405
abstract class CustomClipper<T> extends Listenable {
14041406
/// Creates a custom clipper.

0 commit comments

Comments
 (0)