Skip to content

Commit

Permalink
Corrected inaccurate explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
fujidaiti authored Apr 14, 2023
1 parent cbadd09 commit bc88a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ controller.viewport.addListener(() {

#### 2. Listen `PageViewportUpdateNotification`

`ExprollablePageView` dispatches `PageViewportUpdateNotification` every time its state changes, and it contains a `PageViewportMetrics`. You can listen the notifications using `NotificationListener` widget. Make sure that the `NotificationListener` is an ancestor of the `ExprollablePageView` in your widget tree. This way is useful when you want to do something with the state in an ancestor widget of `ExprollablePageView`.
`ExprollablePageView` dispatches `PageViewportUpdateNotification` every time its state changes, and it contains a `PageViewportMetrics`. You can listen the notifications using `NotificationListener` widget. Make sure that the `NotificationListener` is an ancestor of the `ExprollablePageView` in your widget tree. This method is useful when you want to perform a state-dependent action, but do not have a controller.


```dart
Expand Down

0 comments on commit bc88a0f

Please sign in to comment.