Skip to content

Navigation to HomePage causes RangeError (-1) and minified runtime exception in FlutterFlow #7503

Description

@sean08062009-ux

Can we access your project?

  • 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 navigating to the TrackerQuestionnaire page, the app immediately throws a runtime error:

RangeError (index): Invalid value: Not greater than or equal to 0: -1

In Run Mode, the app also throws:
Instance of 'minified:hI'

This happens even after:

  • Removing Firebase completely
  • Setting index variables to 0
  • Ensuring no lists or PageViews use negative indexes
  • Rebuilding the page structure
  • Testing in Test Mode and Run Mode

The error references:
tracker_questionnaire_model.dart.lib.js
HomePageWidget

The app crashes and cannot proceed.

Expected Behavior

The TrackerQuestionnaire page should load normally without throwing a RangeError or minified runtime exception. Navigation from Onboarding → TrackerQuestionnaire should work without any crashes, and PageView controllers should initialize with valid indexes (0 or higher).

Steps to Reproduce

  1. Open the app in FlutterFlow.
  2. Navigate from the Onboarding page to any other page (for example: TrackerQuestionnaire, RiseJournal, or Mood & Trauma Tracker).
  3. From that page, navigate to the HomePage.
  4. Immediately after navigation, the app throws:
    • RangeError (index): Invalid value: Not greater than or equal to 0: -1
    • In Run Mode: Instance of 'minified:hI'
  5. The crash happens consistently from ANY page → HomePage, except when navigating directly from Onboarding.
  6. The error persists even after:
    • Removing Firebase
    • Setting index variables to 0
    • Ensuring no PageViews or lists use negative indexes
    • Rebuilding the page structure
    • Testing in Test Mode and Run Mode

Reproducible from Blank

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

Bug Report Code (Required)

RangeError (index): Invalid value: Not greater than or equal to 0: -1 Another exception was thrown: Instance of 'minified:hI' Error source: tracker_questionnaire_model.dart.lib.js HomePageWidget FlutterFlow runtime stack trace (Run Mode): Instance of 'minified:hI'

Visual documentation

Image

Environment

- FlutterFlow version: v7.0.79
- Platform: Web
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageA potential issue that has not been confirmed as a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions