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
1
vote
2 answers
Flutter using PageController to change PageView from another class
Help I'm a flutter newbie and I've built a file that has OnTap TapGestureRecognizer functions, which I'm trying to manage the pageView within a second page.
I've tried a few different options and but I can't work out how to get pageController to…

ukholly
- 45
- 1
- 8
1
vote
0 answers
Flutter Custom Push Animation on NavBar item tap
I have a NavBar with some items. For one specific item I would like to push with a Navigator, for the other ones I am using a Global-PageView. My problem is that my app is crashing when trying to add the Navigator.push... :
This is where I build the…

Chris
- 1,828
- 6
- 40
- 108
1
vote
1 answer
Flutter/MySQL: How to pass URLs from mysql database to PageView/ImageSlider Widget?
I would like to pass a dynamic number of image url's from my mysql database to a PageView Widget as a simple ImageSlider.
Problem:
Several type errors like
"the argument type 'List(ImageList)' can't be assigned to the parameter type String."
OR…

AlexF1
- 365
- 3
- 13
1
vote
0 answers
How to call a function when AutomaticKeepAliveClientMixin state widget is going off the screen (or should have been disposed or unmounted)?
In the app, I am using PageView as home and 3 pages in it - Profile, Console, Settings with AutomaticKeepAliveClientMixin extension. In it, 2 of the pages(Profile and Console) have a 'Side Menu' screen using PageView again.
The problem is that when…

prakhar tomar
- 933
- 1
- 8
- 10
1
vote
2 answers
How to create horizontal ListView.builder
Hey there i want to make horizontal ListView.builder but it shows error that 'BoxConstraints forces and infinite width'. Actually i want to make a 'Buyer Request' page like Fiverr.
I achieved my goal using PageView.builder but when i…

Muhammad Shafique
- 487
- 6
- 21
1
vote
2 answers
Can't jumpToPage on PageController in Flutter
I've built a Scaffold screen with a PageView in the body and a bottomNavigationBar.
I've also built a Cubit + State manager for this page.
When the screen first opens up I want an API call to be triggered. I also want tab 1 to be selected (on both…

Rutger Huijsmans
- 2,330
- 2
- 30
- 67
1
vote
1 answer
Scrolling issue with GoogleMap widget in BottomNaviationBar with PageView for persisting state
@override
Widget build(BuildContext context) {
return Scaffold(
body: PageView(
children: _children,
controller: pageController,
onPageChanged: onPageChanged,
),
bottomNavigationBar:…

Akash Deodhar
- 58
- 7
1
vote
0 answers
How do you position a PageView inside a Stack?
I have a PageView and a button inside a Stack (the PageView is at the bottom of the Stack). I have the button in the bottomCenter using Stack's alignment property.
I want to position the PageView inside the Stack so that it appears above the button…

Michael Rodeman
- 81
- 7
1
vote
1 answer
Flutter: How to animate the background color while page transition
I would like to animate between the background colors of two pages in flutter. I am talking about page transitions, but instead of transitioning the whole page I just want to change the background color of the new page (from the previous page's bg…

Midhunraj R Pillai
- 484
- 1
- 3
- 16
1
vote
0 answers
Is it possible to arrange items in pageview like listview with custom animation?
I am trying to achieve the following design. The first issue is when using pageview the current index item appears to be in the centre. I want a list like behaviour. But want to keep track of the current index and upcoming index so I could use an…

Hassam Talha
- 47
- 1
- 10
1
vote
1 answer
Flutter - Passing data in PageView
I am trying to type a message on one "page" of my pageview and would like that message to be displayed on another "page". I understand how this can be done using two separate Scaffold widgets, but struggling to wrap my head around how to do this…

TJMitch95
- 421
- 3
- 7
- 23
1
vote
0 answers
Sizing images in a vertical pageview without compromising the space between each element?
Hello all I am having an issue with resizing an animated container in a pageview. If i resize the image I lose the amount of space in between and if I right a conditional statement to check if the container is an activePage if not higher the other…

Isis Curiel
- 160
- 2
- 14
1
vote
1 answer
Flutter/Dart - Create Index numbers on a PageView in Reverse?
I'd like to render a PageView but instead of the currentIndex for each page being numbered sequentially IE: 1,2,3,4,5,6,7,8,9 I'd like to reverse the numbering IE: 9,8,7,6,5,4,3,2,1.
Anybody know a way to do this??
PageView.builder(
…

Meggy
- 1,491
- 3
- 28
- 63
1
vote
0 answers
PageView doesn't scroll back down when dismissing keyboard
I have two Pages inside a vertical PageView.
PageView(
controller: pageController,
scrollDirection: Axis.vertical,
children: [
PageA(),
PageB(),
],
)
The lower page (B) contains the following:
Column
Row
...
Expanded
…

MindStudio
- 706
- 1
- 4
- 13
1
vote
1 answer
BottomSheet (DraggableScrollableSheet) with dynamic height when button is pressed
So basically I want to be able to change the visible height of the DraggableScrollableSheet when Button is pressed. Like an arrow that will allow the user to lift up & down specific height.
I have the following code so far:
return Scaffold(
…

SLendeR
- 839
- 7
- 25