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
4
votes
1 answer

Using PageView with Bloc to programmatically 'swipe' pages. Prevent the bloc builder from building on certain states?

I've built a PageView and want to control page swiping programmatically using a Bloc. I'm using a PageController and listening for my bloc's ShowPage state. Then calling pageController.animateTo to animate the PageView to the desired page. The bloc…
Simon Hutton
  • 1,677
  • 3
  • 22
  • 35
4
votes
2 answers

Wrap item different height in vertical PageView - Flutter

I have a vertical PageView with different item height : But I would like to wrap each item according their height. The final result I want here: How can we do this ?
4
votes
1 answer

In flutter How to make the inner widget with pan gesture will not conflict with PageView

I have a widget with pan gesture in PageView ,and the PageView can scoll horizontally,When I pan the widget horizontally,the PageView will move. What I expect is that the pan gesture can move the widget in the pageview,instead of moving the…
luckysmg
  • 187
  • 1
  • 9
4
votes
2 answers

How to Put ListView Inside PageView and Scroll Both of Them Vertically?

As the title says, we wanna put a vertical ListView inside a vertical PageView and make them scroll smoothly, We will achieve something like that:
Tayan
  • 1,707
  • 13
  • 18
4
votes
2 answers

flutter scollable.ensurevisible not working in reverse direction

Please check the video / gif: I have a pageview that will make the current tab active. I need to ensure the active tab is always visible even if the user swipes the screen multiple times. It is working from the left to right. But when we try back…
MBK
  • 2,589
  • 21
  • 25
4
votes
1 answer

Need to configure the JSON data fetched fields to the widget elements in flutter

I have the below modeling for the JSON data, in which there are orders and items in each order. DATA MODEL class NewOrder { String _error; List _content; NewOrder({String error, List content}) { …
user14155631
4
votes
2 answers

Pagination in Flutter using Pageview.builder

I'm trying to implement pagination but I can't find any examples of how I should create the controller Listener function - or where I should put it. Please advise. Let me know if I should add more info too. Currently, my listener function looks like…
Farhan Nawaz
  • 105
  • 1
  • 8
4
votes
2 answers

Flutter. Nested scroll inside PageView

I have simple pages with PageView widget, and inside there is ListView. And where scrolling PageView will not work. The reason is simple. Because pointer event consumed by nested child. @override Widget build(BuildContext context) { …
GensaGames
  • 5,538
  • 4
  • 24
  • 53
3
votes
3 answers

Flutter - PageView - Don't change page if the user still touches the screen

How to update the PageView to trigger onPageChange only on specific conditions? Here, I don't want to change the current page if the user is still touching the screen. Apart from that, everything should remain the same (ballistic scroll simulation,…
Adrien Kaczmarek
  • 530
  • 4
  • 13
3
votes
0 answers

How to implement a circular carousel style in Flutter?

I want to create a circular carousel for images like this : The plugin carousel_slider is not what i'am asking here I think this is possible to do this with PageView and the page controller with index pages but what kind of "math logic" should be…
nicover
  • 2,213
  • 10
  • 24
3
votes
0 answers

How to use Page Controller of one screen in other screens - Pageview Widget

I'm trying to access the Page Controller of one screen into the other screen. Let's say there are two screens (Screen A and Screen B) Screen A Code class ScreenA extends StatelessWidget { @override Widget build(BuildContext context) { …
shakky
  • 434
  • 5
  • 20
3
votes
1 answer

Prevent PageView from ScrollNotification listener Flutter

In my use case, I have to listen my CustomScrollView scrolling with NotificationListener and I would like to prevent my PageView updating the pixels metrics value while swiping. Code : @override Widget build(BuildContext context) { return…
nicover
  • 2,213
  • 10
  • 24
3
votes
1 answer

How to make PageView.Builder() scrolling animation from laggy to extremely smooth - Flutter

I've used PageView.Builder() to build widgets fed from an array of basic text Widgets. But in debug mode the animation feels very laggy. In release or profiling mode the animation is still laggy but lot less. Is there any way to completely smooth…
Allan
  • 110
  • 9
3
votes
3 answers

GridView inside PageView flutter

I am new to flutter and in my previous Android app i could make easily any scrollable view inside another with the same direction, working both ways. I wonder if it's possible in flutter : in this case i have a simple GridView inside a PageView with…
Tom3652
  • 2,540
  • 3
  • 19
  • 45
3
votes
0 answers

Facing error in configure fields for JSON data in flutter

I fetched the JSON data in flutter application, I am attempting to display it PageView.builder and nested ListView.builder, this model I have already created. The JSON data is configured like this first Order Details and then it has nested…
user13967504
1
2
3
18 19