Skip to content

Commit c451af7

Browse files
authored
[pointer_interceptor] Add performance warning on using pointer interceptor on iOS (#7288)
Add performance warning to package README on using pointer interceptor on iOS. ## Issues Fixes flutter/flutter#151535
1 parent 064cdb4 commit c451af7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/pointer_interceptor/pointer_interceptor/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.10.1+2
22

3+
* Adds performance warning about using multiple pointer interceptors on iOS.
34
* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
45

56
## 0.10.1+1

packages/pointer_interceptor/pointer_interceptor/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
`PointerInterceptor` is a widget that prevents mouse events from being captured by an underlying [`HtmlElementView`](https://api.flutter.dev/flutter/widgets/HtmlElementView-class.html) in web, or an underlying [`PlatformView`](https://api.flutter.dev/flutter/widgets/PlatformViewLink-class.html) on iOS.
88

9+
Using multiple `PointerInterceptor` instances on iOS can be slow and increases memory usage due to the performance overhead of the underlying platform view.
10+
911
## What is the problem?
1012

1113
When overlaying Flutter widgets on top of `HtmlElementView`/`PlatformView` widgets that respond to mouse gestures (handle clicks, for example), the clicks will be consumed by the `HtmlElementView`/`PlatformView`, and not relayed to Flutter.

packages/pointer_interceptor/pointer_interceptor/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: pointer_interceptor
22
description: A widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web.
33
repository: https://github.com/flutter/packages/tree/main/packages/pointer_interceptor/pointer_interceptor
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+pointer_interceptor%22
5-
version: 0.10.1+1
5+
version: 0.10.1+2
66

77
environment:
88
sdk: ^3.2.0

0 commit comments

Comments
 (0)