Can we access your project?
Current Behavior
W polu Current Behavior wpisz:
`The Button component has two parameters (bg and color) with Color type. FlutterFlow generates default values using FlutterFlowTheme.of(context) in the const constructor, which causes these errors in the Dart analyzer:
- invalid_constant: Invalid constant value (lines 345, 400)
- undefined_identifier: Undefined name 'context' (lines 365, 420)
This completely blocks Test Mode and APK builds. The bug exists since the beginning of the project and is present in all project backups.
Expected Behavior
The Button component should build without errors. Default Color parameter values should not use FlutterFlowTheme.of(context) in the const constructor, as this is not valid Dart. FlutterFlow should either use a const Color as default, or not generate a default value at all.
`Additionally, the component cannot be deleted and replaced because FlutterFlow does not allow deleting components that are in use on pages.
Steps to Reproduce
- Create a Component with a Color parameter named "bg" or "color"
- Set the Default Value to FlutterFlowTheme.of(context).primary (or any theme color)
- Save the component
- Attempt to build the project or run Test Mode
- Observe build errors: "invalid_constant" and "undefined name 'context'" in button_widget.dart
Reproducible from Blank
Bug Report Code (Required)
IT4siMn1z892pbxZ15D+acFr/GAsJlA7auc4scl8bw4bF5joPLMQesnQTFRuOde0TFY3IlmY8HEexvfqv/LxVvUqYDmsGr58z7VTWgv/fDiiSpebELrsfW1fGdxTG0CO1pm7niRROsx1L11nw2a6HeyRa3PaCZzrO1cZDcqLJdeK2SrDX1iXc2URm05KZDPz
Visual documentation
Environment
- FlutterFlow version: latest (web)
- Platform:Web
- Browser name and version:Microsoft Edge (latest)
- Operating system and version affected: Windows 11
Additional Information
This bug has been present since the beginning of the project. I confirmed it exists in project backups from 05/05/2026. The bug cannot be fixed through the UI because default values revert automatically. The component cannot be deleted and replaced because FlutterFlow does not allow deleting components that are in use on pages. This is blocking my app from reaching the App Store before my planned launch date.
Can we access your project?
Current Behavior
W polu Current Behavior wpisz:
`The Button component has two parameters (bg and color) with Color type. FlutterFlow generates default values using FlutterFlowTheme.of(context) in the const constructor, which causes these errors in the Dart analyzer:
This completely blocks Test Mode and APK builds. The bug exists since the beginning of the project and is present in all project backups.
Expected Behavior
The Button component should build without errors. Default Color parameter values should not use FlutterFlowTheme.of(context) in the const constructor, as this is not valid Dart. FlutterFlow should either use a const Color as default, or not generate a default value at all.
`Additionally, the component cannot be deleted and replaced because FlutterFlow does not allow deleting components that are in use on pages.
Steps to Reproduce
Reproducible from Blank
Bug Report Code (Required)
IT4siMn1z892pbxZ15D+acFr/GAsJlA7auc4scl8bw4bF5joPLMQesnQTFRuOde0TFY3IlmY8HEexvfqv/LxVvUqYDmsGr58z7VTWgv/fDiiSpebELrsfW1fGdxTG0CO1pm7niRROsx1L11nw2a6HeyRa3PaCZzrO1cZDcqLJdeK2SrDX1iXc2URm05KZDPz
Visual documentation
Environment
Additional Information
This bug has been present since the beginning of the project. I confirmed it exists in project backups from 05/05/2026. The bug cannot be fixed through the UI because default values revert automatically. The component cannot be deleted and replaced because FlutterFlow does not allow deleting components that are in use on pages. This is blocking my app from reaching the App Store before my planned launch date.