For questions relating to the PageView class in Flutter. When using this tag also include the more generic [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.
Questions tagged [flutter-pageview]
277 questions
0
votes
1 answer
Flutter PageView check if page changed using drag gesture or animateToPage()
In a Scaffold page with something like the following structure
@override
Widget build(BuildContext context){
body: PageView(
controller: _controller;
children: [Page1(), Page2(), Page3()];
);
…

Steven Luo
- 2,350
- 3
- 18
- 35
0
votes
1 answer
How can the subpages of pageview monitor page switching in flutter?
PageView.builder(
itemBuilder: (ctx, index) => pages[index],
itemCount: pages.length,
controller: _pageController,
physics: NeverScrollableScrollPhysics(),
onPageChanged: (index) {
setState(() {
…

zerong jiang
- 23
- 5
0
votes
1 answer
PageView rebuilds main widget In unexpected order
Problem: I have a PageView with 3 pages: P1,P2,P3. When I open an additional page on P3 (or P2) and then close that additional page, the PageView rebuilds but puts P3 as the first page.The new broken page order is P3,P2,P3.
If I exclude if (_page !=…

Miro Liebschner
- 76
- 6
0
votes
1 answer
How to use flutter _pageControler.jumpToPage() from another screen?
Let's say I have 4 files in my project.
navbar, firstPage, secondPage, thirdPage.
In the navbar I have a side drawer with navigation for the pageview and a pageview for firstPage secondPage and thirdPage.
How do I access navbar…

Anže Škulj
- 3
- 1
0
votes
1 answer
How to access and change another widgets pageControllers index from parent widget?
I am trying to nest a PageView inside a PageView and access the second PageView's controller.
The structure of the parent looks like this :
Scaffold(
appBar: buildAppBar(context),
body: PageView(
children: [
Column( …

Christian
- 834
- 7
- 18
0
votes
0 answers
How to implement the Swiping-Gesture for a PageView using a GestureRecognizer in Flutter?
I am trying to recreate the MediaPicker from Instagram.
The current structure of this screen looks like this:
return Scaffold(
appBar: buildAppBar(context),
body: PageView(
physics: NeverScrollableScrollPhysics(), //disable…

Christian
- 834
- 7
- 18
0
votes
2 answers
How to expand pageview content to match parent height and width in flutter?
I have a ListView contains PageViews
Each PageView will contain an array of Images
I need to know the correct way to make PageView items to expand its width and height to match the PageView width and height
and is putting PageView inside ListView is…

Yazan Allahham
- 174
- 2
- 17
0
votes
1 answer
Flutter horizontal Listview/Pageview with selected element animated to full width
so basically I just want to have a horizontal snapping ListView or PageView with items inside, where the currently selected Item will take the whole available full width. This is my base code so far:
import 'package:flutter/material.dart';
void…

Marcel Dz
- 2,321
- 4
- 14
- 49
0
votes
1 answer
How to add different items to a Page View Flutter
I have this code which allows me to scroll between cards that hold text. However, all it does is add the same text on each card. I want to display two separate pieces of text which are kept inside
HomeInfo()
Achieve()
This is the code I currently…

Evonic
- 25
- 1
- 4
0
votes
1 answer
Flutter PageView itemCount change causes PageController jumpToPage to jump to wrong page
I have one PageView that handles three Lists of data that are different lengths. List one has one item, list 2 has 2 items and list 3 has 3 items. Here is what is happening.
PageView gets built with list 1 itemCount = 1 and page 0.
PageView gets…

Warren
- 735
- 7
- 19
0
votes
0 answers
Why have all files in Flutter project red? And why I see a blank screen when I run the code?
I have made a project with Flutter and everything was going fine until I closed my project and when I opened it: I see that all files have turned red and I cannot view anything on the emulator but a white screen (but the first page works just…

programmer
- 25
- 1
- 4
- 11
0
votes
3 answers
Flutter/Dart - Edit Page in PageView, then Refresh and Scroll back to Same Place?
Currently, I can submit edits to a single page in a PageView and then either Navigator.push to a newly created single edited page or Navigator.pop back to the original Pageview containing the unedited page.
But I'd prefer to pop back to the the same…

Meggy
- 1,491
- 3
- 28
- 63
0
votes
1 answer
Flutter/Dart - Transparent Background until Future arrives?
I'm trying to fetch a PageView.Builder which is built with data from the web. When I try to swipe to it from another page, I get a white background that seems to act as a placeholder until the web data from the Future arrives. What I'd like is for…

Meggy
- 1,491
- 3
- 28
- 63
0
votes
1 answer
PageView.builder inside SingleChildScrollView flutter
I am trying to use PageView.builder inside SingleChildScrollView but I always get an error that say
RenderBox was not laid out: RenderRepaintBoundary#490ce relayoutBoundary=up15 NEEDS-PAINT
'package:flutter/src/rendering/box.dart':
Failed assertion:…

wahyu
- 1,679
- 5
- 35
- 73
0
votes
1 answer
Flutter/Dart PageView - SwipeGestureRecognizer Activated on Initial Page only?
I've got a PageView.builder within a StatelessWidget. Each page gets a SwipeGestureRecognizer which provides a Navigator.pop(context) onSwipeDown. But I'd like this gesture to only trigger when the user scrolls back to initialPage: 0. For the rest…

Meggy
- 1,491
- 3
- 28
- 63