Skip to content

Over 1,000 Widget Configuration errors caused by missing theme color references in AI generated pages. #7371

Description

@raynapatel04-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

My FlutterFlow project, Compass, currently has over 1,000 Widget Configuration errors (approximately 1,030 errors). The errors repeatedly state that widgets reference theme colors that do not exist, including on_primary, on_secondary, on_error, and on_success.

These errors are widespread across the project and affect many widgets, including buttons, text, containers, and other generated components. When I open individual affected widgets, I can see conditional color configurations referencing these missing theme colors.

The project and its pages/components were created and expanded using FlutterFlow’s AI page-generation prompts. I did not manually create these hundreds of individual color references or intentionally configure these missing theme tokens.

Because the errors are spread throughout the project, manually correcting each widget individually would require changing a very large number of generated components. The issue appears to be related to the way the AI-generated components reference the project theme and/or a theme configuration or migration problem.

I would like the FlutterFlow team to investigate the project directly and determine the underlying cause of these errors and whether the affected theme references/components can be repaired or migrated without manually rebuilding the entire project.

Expected Behavior

The project should correctly recognize and resolve all theme color references used by its widgets and components. Theme colors such as Primary, Secondary, Error, Success, and their corresponding on-colors should exist and be properly linked to the widgets using them.

I should not have hundreds or thousands of Widget Configuration errors simply because generated widgets are referencing theme color tokens that are missing from the current theme.

I would also expect AI-generated pages and components to remain compatible with the project’s current theme after they are generated.

Steps to Reproduce

Open the Compass project (project ID: compass-edad8).
Open the affected pages/components that were generated using FlutterFlow AI prompts.
Open the Issues panel in FlutterFlow.
The project displays approximately 1,030 Widget Configuration errors.
Open an individual error.
The error reports that a widget references a theme color that does not exist, such as on_primary, on_secondary, on_error, or on_success.
Open the affected widget’s properties and inspect its color configuration.
Some widgets contain conditional/variable color configurations that reference theme colors such as Primary, Primary Text, Error, etc., even though the underlying theme references reported by the validator are missing.
The errors occur across many different widgets/components rather than being isolated to one widget.

Reproducible from Blank

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

Bug Report Code (Required)

IT4gk8n125NPn7xc7aX2de9V/Tg4G2Y1bYc0tN4bGAwaCOPrBIlzP/j7P1RoTLynTAlcJVu0hTkX/MmNj9/IU/FdG0meR718+Kt9Fw/yZFmuRbaaEq63b3Z5J/JMCGrH0KSvvyJDB/VidCEb3Vz2feuvYHbbHufWPUYZAOaeXdeK2SrDX1iXc2URm05KZDPz

Visual documentation

Image Image Image Image Image

Environment

FlutterFlow version: v4.1.63+
Platform: Web
Browser name and version: Google Chrome 
Operating system and version affected: macOS (version not recorded)

Additional Information

This issue is preventing me from reliably continuing development of my Compass app because the project currently reports approximately 1,030 Widget Configuration errors.

The errors are occurring across multiple pages, widgets, and components. Many of the affected pages and components were generated using FlutterFlow AI prompts. I did not manually create each of these widget configurations or theme color references.

The errors report that widgets are referencing theme color tokens that do not exist, including on_primary, on_secondary, on_error, and on_success. I have attempted to investigate individual affected widgets, including their conditional color configurations, but the issue appears across a very large number of widgets, making it impractical to correct each one individually.

I am requesting that the FlutterFlow team review the project directly and determine whether the theme references, AI-generated component metadata, or project configuration can be repaired or migrated. I would greatly appreciate assistance restoring the project to a usable state without having to manually rebuild or reconfigure hundreds of widgets.

Project: Compass
Project ID: compass-edad8

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