Skip to content

PageView current index isnt updating #1014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
Thesergiolg99 opened this issue Jun 20, 2023 · 1 comment
Closed
3 tasks done

PageView current index isnt updating #1014

Thesergiolg99 opened this issue Jun 20, 2023 · 1 comment
Assignees
Labels
closed: not a bug The behavior is correct/expected.

Comments

@Thesergiolg99
Copy link

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When creating a pageview and adding in each page a text with the current pageview index, it always remains 0

Expected Behavior

It should update on each swipe on pages. (0...1...2...3...etc)

Steps to Reproduce

1)create a blank project
2) Create a pageview with some pages
3) Add a text on each page and show the "current page index"
4)Run the app and you will see it remains on 0 always

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITFTz/Hqx89Nobhe+KrMLfpaliE7M0MdXJI7jNV/ewgjF774PJkDds+lSFZVXsSzaH5UOVe0pGEKzMr3ud/tNPZdFzqWG5hCz6ttFhPPbFiXVY+aDZGWdX9PEfhWfUiB0p6NgRIlAOxuc1Zh3GauDNiRQT6Cf9qOYwx5e6fDbOY=

Context

To generate children and update each document on an specific index.

Visual documentation

image
image
image

As you can see, each page shows a 0 always instead of the page index

Additional Info

No response

Environment

- FlutterFlow version: 3.1
- Platform: WEB
- Browser name and version: CHROME (Brave) v1.52.126
- Operating system and version affected: WINDOWS 11
@Thesergiolg99 Thesergiolg99 added the status: needs triage A potential issue that has not been confirmed as a bug. label Jun 20, 2023
@hariprasadms
Copy link

Hi @Thesergiolg99 - Thanks for submitting the issue. I have tested the issue and I can confirm that it is working as expected. To make it work you should use on page swipe action and page or app state variables combination. See below example. Thanks

2023-06-20_15-50-05.mp4

@hariprasadms hariprasadms added closed: not a bug The behavior is correct/expected. and removed status: needs triage A potential issue that has not been confirmed as a bug. labels Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: not a bug The behavior is correct/expected.
Projects
None yet
Development

No branches or pull requests

3 participants