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

flutter DioException causing pageView index initialized

I'am using PageView now. In the PageView, there are four pages. class OnboardingScreen extends StatefulWidget { const OnboardingScreen({super.key}); @override OnboardingScreenState createState() => OnboardingScreenState(); } class…
0
votes
4 answers

How to disable scroll in PageView in a particular direction in flutter

I'm new to flutter and am learning about Pageview. In my app I have made an onboarding screen. Is there a way to disable scroll in a particular direction? What I'm trying to achieve is that the user should not be able to scroll/swipe left when they…
0
votes
0 answers

Why is my PageView.builder only calling the itembuilder for index 0 and not the full range?

I am creating a scrollable newsfeed. I call my newsfeedtile using the following code which works fine: `ListView.builder( shrinkWrap: true, physics: NeverScrollableScrollPhysics(), itemCount: 1, //…
0
votes
0 answers

IOS app Crashes when ads load in Flutter Page view builder

A page view builder having many pages and each page has 1 or 2 ads in it... On Creation of each page I make and load the ads and on dispose I dispose the ads... Problem: it is working fine on Android but in IOS the app the crashing after 1 or 2…
0
votes
0 answers

Flutter: determine active page in the pageController

I manually coded a TabPageSelector allowing users to see their progress in scrolling through the pages (from a PageView.builder). However I cannot seem to successfully pass-down the _activePage to the CircleAvatar that needs to change color. My…
Hugo
  • 5
  • 1
0
votes
0 answers

How to create a two direction swip in a Flutter page?

I am interested to know how can I make a PageView widget swipe able to both directions at the same time, like what we can see in the TikTok app that you can swipe videos vertically to change them, then also you can swipe to right or left to see the…
0
votes
0 answers

Can't scroll PageView in flutter when run on browser

I was following Mitch Koko's tutorial about cloning TikTok UI using flutter. At some point he used PageView so user can scroll up or down. His app was working fine and so was mine. But I can't scroll when the code is deployed on Crome or Edge…
0
votes
0 answers

3D animation in PageView/Carousel/Slider in flutter

I have a pageView builder, and want to have a 3D type animation more like a hexagon. Presently I just have a simplePageView builder and I just know we have to use transform or matrix4, but ran short of sources to completely grasp the concepts…
krishnaacharyaa
  • 14,953
  • 4
  • 49
  • 88
0
votes
2 answers

PageView builder starts from first index

I am working on a project which uses PageView builder. I want to open screens from the onClick index, but it always starts from index 0. How can I display them with current index with swipe up left and right both direction? Here is my…
Aashi
  • 53
  • 7
0
votes
0 answers

How to disable bouncing animation for pageview in flutter

Why do my codes have bouncing animation just for six items, not 7, 8, or 9, here is the full code, I don't want this animation: Widget courtsTitle(WidgetRef ref, BuildContext context) { double deviceWidth = MediaQuery.of(context).size.width; …
Abbas Jafari
  • 1,492
  • 2
  • 16
  • 28
0
votes
0 answers

Flutter : DropdownButton dosnt display the selected item in a Pageview

im working on a survey with multiple pages and differents kinds of questions, my problem is that the questions type dropdownButton dosnt diplay the selected answer. I put a breakpoint in the onchanged of my dropdown DropdownButton( …
MGS
  • 1
0
votes
1 answer

How can I use Gorouter and Pgeview together to achieve the navigation in the Flutter web app with PageView builder and named routes?

I want to achieve Url Navigation in Flutter Web using Gorouter and PageView-builder built within a single scaffold. I want to change the PageView item only and retain the remaining parts of the scaffold without rendering them again.
0
votes
0 answers

flutter Drawer controll Pageview return _positions.isNotEmpty if drawer separate from MainView

I am new to Flutter, I just separate the Drawer() to a new file call side_drawer.dart. After i separate them, this error comes, IF i do not serpate them, there is no Error. ══╡ EXCEPTION CAUGHT BY GESTURE …
0
votes
1 answer

How to pass data from two dropdown buttons between pages in PageView Widget?

I am building an onboarding feature with three pages: Page 0 contains the PageView Widget and loads Pages 1 and 2 with widgets.add() method Page 1 is a welcome screen Page two contains two dropdown buttons which should pass their values to Page 0…
BradG
  • 673
  • 1
  • 14
  • 26
0
votes
3 answers

how to use PageView and Bottom Navigator together?

I want to access page view as well as the bottom navigator with the same controller so that I can have that page swipe action that page view has by default. I wanted to link pageview screens to the bottom navigator with the controller to have a…