Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LinXunFeng committed Nov 11, 2023
1 parent 671d846 commit 5c0eb41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/src/common/observer_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ mixin ObserverControllerForScroll on ObserverControllerForInfo {
return;
}

// Start executing scroll task.
// Start executing scrolling task.
_handleScrollStart(context: ctx);

bool isAnimateTo = (duration != null) && (curve != null);
Expand Down Expand Up @@ -1052,15 +1052,15 @@ mixin ObserverControllerForScroll on ObserverControllerForInfo {
indexOffsetMap[ctx] = map;
}

/// Called when starting the scroll task.
/// Called when starting the scrolling task.
_handleScrollStart({
required BuildContext? context,
}) {
innerIsHandlingScroll = true;
ObserverScrollStartNotification().dispatch(context);
}

/// Called when the scroll task is interrupted.
/// Called when the scrolling task is interrupted.
///
/// For example, the conditions are not met, or the item with the specified
/// index cannot be found, etc.
Expand All @@ -1080,7 +1080,7 @@ mixin ObserverControllerForScroll on ObserverControllerForInfo {
ObserverScrollDecisionNotification().dispatch(context);
}

/// Called after completing the scroll task.
/// Called after completing the scrolling task.
_handleScrollEnd({
required BuildContext? context,
required Completer completer,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/notification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ObserverScrollInterruptionNotification
extends ObserverScrollNotification {}

/// A notification that the data of the specified index item is determined
/// during the execution of the scroll task.
/// during the execution of the scrolling task.
class ObserverScrollDecisionNotification extends ObserverScrollNotification {}

/// A notification that a scrolling task has stopped due to calling the jumpTo
Expand Down

0 comments on commit 5c0eb41

Please sign in to comment.