From eb2518f20a1a44fa5f4939fc9acb73fadf62f7eb Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 3 Oct 2017 01:59:26 +0200 Subject: [PATCH] fix(typo) desc of jumpToPage (#12320) --- packages/flutter/lib/src/widgets/page_view.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/widgets/page_view.dart b/packages/flutter/lib/src/widgets/page_view.dart index 7873327770..98ac8d41f7 100644 --- a/packages/flutter/lib/src/widgets/page_view.dart +++ b/packages/flutter/lib/src/widgets/page_view.dart @@ -101,10 +101,8 @@ class PageController extends ScrollController { /// Changes which page is displayed in the controlled [PageView]. /// - /// The animation lasts for the given duration and follows the given curve. - /// The returned [Future] resolves when the animation completes. - /// - /// The `duration` and `curve` arguments must not be null. + /// Jumps the page position from its current value to the given value, + /// without animation, and without checking if the new value is in range. void jumpToPage(int page) { final _PagePosition position = this.position; position.jumpTo(position.getPixelsFromPage(page.toDouble()));