Skip to content

Commit

Permalink
[pointer_interceptor] Mark PointerInterceptor as invisible (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Terkelsen authored Feb 3, 2022
1 parent b8c9dab commit 0bcdbdf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/pointer_interceptor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.2

* Marked `PointerInterceptor` as invisible, so it can be optimized by the engine.

## 0.9.1

* Removed `android` and `ios` directories from `example`, as the example doesn't
Expand Down
3 changes: 2 additions & 1 deletion packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class platformViewRegistry {
/// Shim for registerViewFactory
/// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72
static void registerViewFactory(
String viewTypeId, dynamic Function(int viewId) viewFactory) {}
String viewTypeId, dynamic Function(int viewId) viewFactory,
{bool isVisible = true}) {}
}

// ignore: avoid_classes_with_only_static_members
Expand Down
2 changes: 1 addition & 1 deletion packages/pointer_interceptor/lib/src/web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void _registerFactory({bool debug = false}) {
htmlElement.style.backgroundColor = 'rgba(255, 0, 0, .5)';
}
return htmlElement;
});
}, isVisible: false);
}

/// The web implementation of the `PointerInterceptor` widget.
Expand Down
2 changes: 1 addition & 1 deletion packages/pointer_interceptor/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: pointer_interceptor
description: A widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web.
repository: https://github.com/flutter/packages/tree/main/packages/pointer_interceptor
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+pointer_interceptor%22
version: 0.9.1
version: 0.9.2

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 0bcdbdf

Please sign in to comment.