mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 07:08:10 +08:00
[pointer_interceptor] Fix README for pub.dev (#258)
Tweak the README.md slightly so it renders better in pub.dev (which seems to be completely removing the center tag).
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
## 0.8.0+1
|
||||
|
||||
* Update README.md so images render in pub.dev
|
||||
|
||||
## 0.8.0
|
||||
|
||||
* Initial release of the `PointerInterceptor` widget.
|
||||
|
@ -10,12 +10,11 @@ When overlaying Flutter widgets on top of `HtmlElementView` widgets that respond
|
||||
|
||||
The result is that Flutter widget's `onTap` (and other) handlers won't fire as expected, but they'll affect the underlying webview.
|
||||
|
||||
<center>
|
||||
|The problem...|
|
||||
|:-:|
|
||||
||
|
||||
|_In the dashed areas, mouse events won't work as expected. The `HtmlElementView` will consume them before Flutter sees them._|
|
||||
|
||||

|
||||
|
||||
_In the dashed areas, clicks won't work as expected._
|
||||
</center>
|
||||
|
||||
## How does this work?
|
||||
|
||||
@ -25,13 +24,10 @@ This empty platform view doesn't do anything with mouse events, other than preve
|
||||
|
||||
This gives an opportunity to the Flutter framework to handle the click, as expected:
|
||||
|
||||
<center>
|
||||
|
||||

|
||||
|
||||
_Each `PointerInterceptor` (green) renders between Flutter widgets and the underlying `HtmlElementView`. Clicks work as expected._
|
||||
</center>
|
||||
|
||||
|The solution...|
|
||||
|:-:|
|
||||
||
|
||||
|_Each `PointerInterceptor` (green) renders between Flutter widgets and the underlying `HtmlElementView`. Mouse events now can't reach the background HtmlElementView, and work as expected._|
|
||||
|
||||
## How to use
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: pointer_interceptor
|
||||
description: A widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web.
|
||||
version: 0.8.0
|
||||
version: 0.8.0+1
|
||||
repository: https://github.com/flutter/packages
|
||||
|
||||
environment:
|
||||
|
Reference in New Issue
Block a user