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
2
votes
0 answers

flutter NestedScrollView with Pageview in the body not working as expected

I created a screen with nestedscrollview that consist of a sliverappbar to hide when scroll and body with pageview. but when i switching between pages with swipes the scroll is not behaving as expected. the sliver app bar not expanding when swiping…
MBK
  • 2,589
  • 21
  • 25
2
votes
0 answers

Duration animation dynamic with flutter

I created these two files one is a class with a list, another is for animations, and the last one serves for display. How do I set the duration of the animation as I wrote in the list? if i put a number in duration like 60 but i want the duration is…
Robbie53
  • 25
  • 3
2
votes
1 answer

Flutter Pageview loses index on orientation change

There have been similar issues recently, but they have been resolved and closed on GitHub. As I'm a newbie, I could be missing something here. After an orientation change, the page index reverts to zero, but the selected BottomNavigationBarItem is…
2
votes
2 answers

Flutter Setstate called multiple times (GestureDetector & PageView)

basically I have a swiping screen with elements, where user is able to swipe in left or right direction. When the user is swiping, im calling some functions. Im using GestureDetector for gesture recognitions and PageView.Custom for my items.…
Marcel Dz
  • 2,321
  • 4
  • 14
  • 49
2
votes
2 answers

Flutter - Using Dismissible on a PageView creates an ugly animation

with the following example code, is get a very ugly animation. I would even say, it's no animation at all. The next Page will just appear after the setstate is called. How can I create a smooth delete animation using PageView? If it is not possible…
mincer
  • 21
  • 1
  • 2
2
votes
0 answers

Flutter - Notify child pages

I have a Parent page, that contains a PageView, like this : class _ParentState extends State { String title = "" ; List pageTitles = [ "Page 1", "Page 2", ] ; @override Widget build(BuildContext context)…
Mathieu
  • 1,435
  • 3
  • 16
  • 35
2
votes
1 answer

How to Swipe a card in a group of listview and open repective page releated to that card while using Page View in flutter?

Image understands you the purpose better https://i.stack.imgur.com/Z45YH.jpg I tried everything but failed!
asim
  • 17
  • 3
2
votes
1 answer

Want to remove indexed item in flutter's listview

There is an order list(contains orders) which is configured with pageview builder(Horizontal scroll) and in each order page there are items in listview.builder(vertical scroll), which I am able to successfully configure dynamically. Now every order…
user14155631
2
votes
0 answers

Flutter PageView paper animation

I am trying to create an animation in Flutter PageView to change the pages like in a book. For example, Google Play Books does the same in the online book when you change the page.
Otavio Miguel
  • 334
  • 1
  • 5
  • 15
2
votes
2 answers

How to fetch the JSON data in flutter application?

I have below JSON data fetched from server, which I need to fetch and configure in pageviewbuilder as well as listview builder in flutter application. Listview builder(vertical scroll) is nested in Pageview builder(horizontal scroll), this I already…
user14155631
2
votes
2 answers

PageController not set properly within the PageView module in Flutter. Positions not empty error popping up

I started programming using the Flutter framework and immediately noticed an odd issue popping up (see below for more info). The problem occurs when: After returning to the MainScreen and trying to change from the PageView index by pressing on a…
Logan
  • 93
  • 9
2
votes
1 answer

Using DefaultTabController in widget tree with variable height

In my app I have a PageView and then in that PageView I have some tabbed content (through use of DefaultTabController). In those tabs, I have some content of variable height. No matter what I do, whenever I try to use the DefaultTabController,…
Lewis Cianci
  • 926
  • 1
  • 13
  • 38
2
votes
0 answers

PageView vs Routing in Flutter

I am new to Flutter and cannot find many info about best practice about: when to use Raouting and when to use PageView. In my app i want to have shared ApBar and BottomNavigation also i want to have details page in some pages. Should i use PageView…
2
votes
2 answers

How to handle scrollview gestures inside a Flutter PageView?

Summary of my problem Goal My goal is to present a carousel with long pages. So I use a PageView with scrollviews. The PageView scrolls horizontally. The scrollviews (children) scroll vertically. Expected Results Swipe horizontally and scroll…
Mike
  • 31
  • 1
  • 4
2
votes
0 answers

PageView disable multitouch swipe

When swiping PageView with multiple fingers multiple pages are often swiped. I don't think it's entirely deterministic but when swiping with one finger it always swipes to next/previous page. When with two or more it often swipes 2-3 pages away. Is…
Brazol
  • 435
  • 1
  • 6
  • 17