Flutter How to vertical scroll a screen like a book

Issue

e-book

I want to make an e-book with scrolling screens that are images with Flutter

Solution

You should use PageView. Using page view you can either scroll page horizontally or vertically.

PageView.builder(
  itemBuilder: (context, position) {
    return _buildPage();
  },
  itemCount: listItemCount, 
  scrollDirection: Axis.vertical,
)

Answered By – nick.tdr

Answer Checked By – Marilyn (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.