Learning Flutter Widgets, Widget 8 – PageView

PageView class

A scrollable list that works page by page.

Each child of a page view is forced to be the same size as the viewport.

You can use a PageController to control which page is visible in the view. In addition to being able to control the pixel offset of the content inside the PageView, a PageController also lets you control the offset in terms of pages, which are increments of the viewport size.

The PageController can also be used to control the PageController.initialPage, which determines which page is shown when the PageView is first constructed, and the PageController.viewportFraction, which determines the size of the pages as a fraction of the viewport size.

Source Website: api.flutter.dev

https://api.flutter.dev/flutter/widgets/PageView-class.html

Previous Post
Next Post

Leave a Reply

Your email address will not be published. Required fields are marked *