Skip to content

RatingBarIndicator build error in new test mode — "No named parameter with the name 'key'" #7176

@224collective-eng

Description

@224collective-eng

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

New test mode fails to build with this error appearing in two places on the ProductDetail page:

lib/product_detail/product_detail_widget.dart:255:38: Error: No named parameter with the name 'key'.
children: [RatingBarIndicator(key: const FFNodeKey('RatingBar_38w5zeq3'),

lib/product_detail/product_detail_widget.dart:1003:21: Error: No named parameter with the name 'key'.
RatingBarIndicator(key: const FFNodeKey('RatingBar_9zedufhd'),

Root cause: FlutterFlow's new test mode injects key: const FFNodeKey(...) into every widget, but flutter_rating_bar 4.0.1's RatingBarIndicator constructor does not accept a key parameter.

Old test mode (?legacy=1) builds and runs fine. Issue is isolated to new test mode.

Question: Is this test-mode-only or will it also affect production iOS / TestFlight builds?

Project: blank-629zkz
Page: ProductDetail

Expected Behavior

New test mode should build successfully, same as old test mode.

Steps to Reproduce

  1. Open project blank-629zkz
  2. Go to ProductDetail page
  3. Launch new test mode (not legacy)
  4. Observe build failure

Reproducible from Blank

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

Bug Report Code (Required)

ITEelsn1z4pNj70C+ZfUL8IxowMwJ0QlUIInj+0bWRMhfLLqPZYMfeDsahNLYteUYH5EBFb+uD4x0cHFhdrPLuw6aEmVRYReyoRXQTvKQmG6MK6mDqWKZ39CQMFVC3aM4KuzqhNSCMteS1YBwzqqCfCdG3qCf9qOYwx5e6fDbOY=

Visual documentation

Image

Environment

- FlutterFlow version: 
- Platform:
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions