Questions tagged [flutter-pageview]

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.

277 questions
0
votes
1 answer

Index scrolling problem with PageView.Builder()

i´m trying to make a horizontal scrollable widget. it must be infinit (or kind of), so I´ve done this. Widget build(BuildContext context) { final int initialPage = 1000; return Container( margin: const EdgeInsets.all(10.0), …
0
votes
2 answers

How can I fix the error generated by the ListView?

Guys I have a question for you: I have built a PageView. In this PageView is a ListView and in this ListView is a list of widgets. But unfortunately my code doesn't work for some reason ... And I have no idea why. I'm still very new to Flutter. I…
0
votes
1 answer

PageView - preserve page/change index while inserting new items

When adding new items to list, PageView index stays the same, but item with that index changes and I would like to avoid that behavior. To be more specified those new items are inserted to the begging of the list. Is there a way to preserve current…
hydeparkk
  • 62
  • 1
  • 7
0
votes
1 answer

Generating widgets in Pageview based on conditional logic

Currently facing a problem with conditional logic and PageView widget. Let's say that the PageView will dynamically generate 3 pages. In those 3 pages different widgets will be generated. One of the widgets is a button (called "Next"), which is a…
0
votes
1 answer

Flutter : How create PageView with previous and next item smaller in size?

I want to create below type of carousel view in Flutter What I have tried so far I have already this carousel_slider 1.4.1 package:flutter package not able to create carousel view as per my requirement I Have tried using source and try to modify…
Goku
  • 9,102
  • 8
  • 50
  • 81
0
votes
1 answer

Cannot Navigate To Next Page PageView

I am using a pageview builder but cannot iterate through the pages. I keep getting this error: "The method 'animateToPage' was called on null. Receiver: null Tried calling: animateToPage(1, curve: Instance of 'Cubic', duration: Instance of…
0
votes
1 answer

flutter blank page in page view

I have this page view in flutter and I get a blank page on the first page, how to solve this problem? PageView.builder( physics: new NeverScrollableScrollPhysics(), itemCount: allDays.length, …
Husamuldeen
  • 439
  • 1
  • 8
  • 21
0
votes
1 answer

Tinder like navigation in Flutter

How to achieve this in Flutter? Any help would be appreciated, thanks!
tsomone
  • 45
  • 12
0
votes
1 answer

How can i use infinite PageView?

In the last week I couldn’t’ fix a problem with my app. The problem is I can’t figure out how to use pageview pages separately. Basically i want to add/subtract numbers in one page but don't want to change the numbers on the other ones. This is my…
Matelevi12
  • 27
  • 6
0
votes
1 answer

Is it possible to give index to a date and then use jumpToPage to that date?

So this is what I want basicly: I want every day to be and index so 2020 jan. is 31 days + feb. 21 = 52. When I click on feb 21 I want to jump to page with index 52. Right now Its jump to 52 because of this code: controller.jumpToPage(52);
Matelevi12
  • 27
  • 6
0
votes
1 answer

How to add Bottom Padding in Page View in Flutter

I want to add bottom padding for showing page in page view like this image.
0
votes
3 answers

How to include two items as a page main content in pageview -- Flutter

Is it possible to use PageView to reach the following work? I'd like to use two containers as the main content for a page in PageView. I've tried to adjust viewPortFraction but it doesn't work as I expected. The following effect is used by Apple App…
Allen
  • 17
  • 1
  • 8
0
votes
0 answers

State not updating after removing item from array in PageView

I have an array of Character objects that is handled by a Provider and set through an SQL query. When I perform an INSERT action the new Character is successfully added to the pageview. But when I perform a DELETE action and remove the Character…
Garrison
  • 99
  • 1
  • 9
0
votes
1 answer

Is there a way to retain the state of a child stateful widget?

Hy guys, I'm kinda new to this thing but pls is there any way one could retain the state of a stateful widget instead of rebuilding the widget each time it is called --Let's say I have a PageView as my home page and its children are all stateful…
0
votes
2 answers

Flutter PageView remove page Indicator

Does anyone know if there is a way to remove the PageView indicator which is shown for a couple of seconds after I change the Page? return Scaffold( bottomNavigationBar: CubertoBottomBar( tabStyle:…
F0rce
  • 13
  • 2
  • 13
1 2 3
18
19