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 Horizontal PageView with Child Width Larger Screen Width
How to implement PageView width child have width larger screen width.
PageView(
controller: controller,
children: const [
Image('img1.jpg'),
Image('img2.jpg'), // large image one
Image('img3.jpg')
…

noname.cs
- 1,938
- 4
- 16
- 25
0
votes
0 answers
Set PageView child page width or height after loading webview content
I have a screen with a PageView, PageView have 3 webView as childs, and pageView scrollDirection is Axis.vertical, the problem is each pageView child height is not adjust to the height of each webView height.
Widget build(BuildContext context)…

noname.cs
- 1,938
- 4
- 16
- 25
0
votes
1 answer
How to prevent flutter_webview from reloading rotatiting screen?
I'm using webview_flutter plugin like below:
@override
Widget build(BuildContext context) {
return Scaffold(
body: WebView(
gestureNavigationEnabled: true,
initialUrl: link,
…

Martin Wittick
- 433
- 1
- 4
- 14
0
votes
2 answers
Disable pageview upward scroll
I added a pageview (with a snap) to the body of a scaffold. I'd like users to scroll pages down only, not up. Can you please help? Thanks

jennie788
- 396
- 3
- 18
0
votes
2 answers
How to make Pageview to show the same widget (without losing state), infinitely when scrolling - Flutter
I have a single page. I want to show the same page again and again without rebuilding it again on the next page or without losing it's state when scrolling ( infinitely)
Here's the below code, (Every time I move to the next page, the widgets[0] get…

Allan
- 110
- 9
0
votes
1 answer
Handle swipe of PageViewer Programmatically in TabBar - Flutter
I have Implemented TabBar with 3 Tabs. In 2nd Tab, the class contains PageViewer and its 3 Pages.
Now when I swipe from 1st tab to 3rd Tab, the order of page appearing is this:
1st Tab >>
2nd Tab(PageViewer index 0th page) > (index 1st page) >…

Nachiket Gohil
- 955
- 11
- 17
0
votes
1 answer
RadioListTile issue when used on PageView.builder
I am pulling Quiz data from API, and using StreamBuilder
Using PageView.builder to show each Question & Options in separate page
RadioListTile for Options and using maps to iterate answers from List
The Issue is --> whenever I select any Option in…

Indrajeet Singh
- 62
- 2
- 10
0
votes
0 answers
How To Pass data(List) from one Page to Other in pageview In Flutter I m using Callback for page change Any solution?
using callback I am change page in page view I need to pass data also in callback how can I pass data in page view in this call back flutter
Widget buildPageView() {
return PageView(
controller: pageController,
onPageChanged: (index) {
…

punit tmedia
- 1
- 1
0
votes
1 answer
Flutter pageview, add new elements at runtime
In my project I have a Pageview which contains widgets from a list. In runtime I add more elements to this list to show it in the Pageview. If I don't specify itemCounter than I can run out of index but I can see the new pages, however, if use…

Gergő Csiszár
- 107
- 1
- 6
0
votes
1 answer
Can I use for loop to create class?
I create swipe app for swipe Page1(), Page2() in main.dart which class Page1(), Page2() show in pages.dart. All code I use from this tutorial (github).
I want to create 30 pages. Can I use for loop to create 30 class ?
main.dart
class…

user572575
- 1,009
- 3
- 25
- 45
0
votes
1 answer
Flutter/Dart - Null Check Error with data provided by PageViewBuilder
I'm getting the following nullcheck errors on data provided by a PageViewBuilder;
The following _CastError was thrown building:
Null check operator used on a null value
When the exception was thrown, this was the stack:
#0 …

Meggy
- 1,491
- 3
- 28
- 63
0
votes
1 answer
How to get the index of the main item on screen from 2 nested PageViews?
I have nested PageViews, the outer one is vertical (can scroll up and down) and the inner pageview is horisontal (can go left and right) - In each row of the vertical scrol view I have horizontal pageview.
Based on the code here, I get the correct…

Zahra
- 336
- 3
- 10
0
votes
1 answer
Flutter PageView is not working like disabled
I was trying to make the carousel in Flutter but unfortunately, PageView have some problem while I was working on it
class Carousel extends StatelessWidget {
Corousel({Key key}) : super(key: key);
PageController controller =…
0
votes
1 answer
Flutter PageView PageController from another class
How to call pageController from another class?
I create a pageController in main class, and I want to use it in the each of PageView children (widgets from another class).
Thank you.

Mario Ay
- 11
- 1
0
votes
1 answer
How to create a pageView with ListView
I have a list Named Cart and it may consist of more than 12 items and if it is more than 13 I want to create pages from it. How can I do it? The below code generates one page. Can you point me to how to build more pages?
Expanded(
child:…

Ardeshir ojan
- 1,914
- 1
- 13
- 36