📱 Flutter
Intermediate
What is PageView in Flutter?
Answer
PageView is a scrollable widget where each child fills the entire viewport and users swipe horizontally (or vertically) to navigate between them. It is perfect for onboarding screens, image carousels, and tabbed content without a visible tab bar. Control it with a PageController, which lets you programmatically jump to a specific page with controller.animateToPage() or check the current page with controller.page. Add a PageView.builder() for large or infinite page sets.