Skip to content

PageView Current Index always 0 #538

@ross-anibles

Description

@ross-anibles

Expected behavior

I expect that when I change pages within a PageView (e.g. swipe to the next page) that the Page View Current Index variable within the WidgetState will reflect the index of the page I have switched to.

Current behavior

The index is always zero.

To Reproduce

Steps to reproduce the behavior:

  1. Create new page
  2. Add PageView with pages
  3. Add a Text and populate it using Page View Current Index within Widget State
  4. Run the project
  5. Observe that the Text is always 0

Bug Report Code

Text:
IT4ozMrl8ZRJochE1q6JK+9ajSQsQmU1Rp0r0cpOEC0jF7KuBqQAfs/eSBRpXcDmaVNcH02bmkY1w+zNiOzpFMA5EwWdbKZR+ZF+VRb2KTbkEuzyT+3IHDUHZbsSXTTm

PageView:
IT4ozMrl8ZRJochE1q6JK+9ajSQsQmU1Rp0r0cpBZykgGL7yCLMqY8mnP1dCUumgdwhiImamp14CwtbNjuDhLsIEHASWR75Bz852VhXyYEeWRcTfU/HUACkbeacOQSj6

Context (required)

I need to figure out when the user has finished the PageView, but cannot.
I would like to show progress through the Pages in the PageView, but cannot.

Your environment

  • Version of FlutterFlow used: 3.1 (Flutter 3.7.3)
  • Platform (e.g. Web, MacOS Desktop): Web on MacOS
  • Browser name and version: Chrome 109.0.5414.87 (Official Build) (x86_64)
  • Operating system and version (desktop or mobile): Desktop - MacOS 13.0 (22A380)

Metadata

Metadata

Labels

status: confirmedIssue has been reproduced and confirmed as a bug.type: bugSomething isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions