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

Flutter/Dart - Nested Horizontal and Verticle PageViewBuilders?

Upon viewing each page in a horizontal PageView.builder I'd like to call a vertical PageView.builder to supply each page with its own vertical list of replies. What's the best way to do this? class StageBuilder extends StatelessWidget { final…
Meggy
  • 1,491
  • 3
  • 28
  • 63
0
votes
1 answer

Flutter/Dart - Get index number of PageView.Builder for use in a Text Widget?

I've got a PageView.builder within a StatelessWidget. I need to get the current index number of the currently viewed page to appear in a text widget in my build. Was hoping I could simply use currentIndex.toString() as a variable in the text widget…
Meggy
  • 1,491
  • 3
  • 28
  • 63
0
votes
2 answers

Not able to make Scrollable

I am new in flutter and I try to make scrollable UI. I try to add Expanded widgets, ListViews Widgets , SingleChildScrollView widgets but didn't get the expected result. Also, I try to wrap the stack inside Container and then inside…
0
votes
1 answer

PageController ignores Listener

I'm trying to change page in a PageView when the mouse scrolls, I'm using a Listener following this article, in my implementation (https://dartpad.dartlang.org/c2b24881927981575ff81367121f4e5f) using the fabs it behave as expected: move to the new…
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
0
votes
2 answers

Flutter/Dart - Update Title Automatically on Built Page Views after edit?

I've got a PageView.builder that returns pages. Each has a title and a tag. I've also got an EditPagewhich allows the user to edit the title. The edited title is updated via PHP on a MySQL database. Can I get the individual page to automatically…
Meggy
  • 1,491
  • 3
  • 28
  • 63
0
votes
0 answers

How to implement dynamic page building in flutter?

I am trying to know to build a page in flutter. I am using firestore database I know how to build a list using Stream or ListView.Builder. and automatically list items are are created as per the number of documents. I want to build pages similar to…
user13967504
0
votes
1 answer

Flutter Streambuilder use twice in gridview builder and pageview

I have got a gridview which contains thumbnails for videos. Now this list of thumbnails is generated from a stream. What I need is, when user taps on any of the image the particular video should get opened in a pageview. I have already achieved this…
0
votes
1 answer

PageView.builder in flutter

How can I rebuild my PageView.builder? when I change _type property in MyPage, I want rebuild it child: PageView.builder( controller: _controller, itemCount: items.length, allowImplicitScrolling: true, …
esfsef
  • 193
  • 3
  • 11
0
votes
1 answer

Flutter - PageView - Only scroll when you swipe on top of a specific component instead of any location of the page

Totally new to flutter, less than 10h on it. I have a PageView handing 3 pages, it scrolls horizontally through them perfectly. But I would like to change the "allowed swipe" area. I don't want to let the user change the pages scrolling from any…
Francisco Ferri
  • 189
  • 2
  • 11
0
votes
1 answer

Is there any possible way to add a tap on right to go forward and tap on left to go backward like Instagram stories in flutter Pageview?

Expected implementation of the question is similar to Instagram stories. There exists a package called story_view in flutter which does the same but it's not possible to add a Pageview as child as per my understanding. So, any way this can be…
0
votes
1 answer

problem GestureDetector onTapDown with PageView flutter

I have a Container A wrapped inside GestureDetector, which tap down to change background color to yellow, tap up to restore color to red. When the Container A is tapped, the color will be changed like this (red -> yellow -> red). But if this…
0
votes
1 answer

Flutter slide with inner arrows

How can I achieve such behavior in Flutter? any widget or plugins example? See this gif I tried carousels plugins and viewPagers widgets but couldn't make it work. here is the sample code I started with. CarouselSlider( items: [ …
Bisma Frühling
  • 776
  • 1
  • 11
  • 21
0
votes
1 answer

Flutter PageView prevent swiping when there's no widget

On iOS the user can swipe right or left even when there's no item there, it rebounds but the user can still see part of a white screen. Is there anyway to prevent this?
alibiineed
  • 95
  • 1
  • 7
0
votes
1 answer

Flutter: How to smooth PageView onPageChanged animation

If you follow the example codes found online, when building a scaffold, under body, you can have: body: PageView( controller: _pageController, onPageChanged: (index) { setState(() => _selectedPage = index); }, children:…
IntiM
  • 11
  • 6
0
votes
1 answer

Flutter : PageView loosing Carousel while changing the screen

I'm using below code to Carousel using PageView PageView.builder( onPageChanged: (value) { setState(() { currentpage = value; …
Goku
  • 9,102
  • 8
  • 50
  • 81