Has your issue been reported?
Current Behavior
Visibility -> Code Expression -> kDebugMode
shows the error undefined name 'kDebugMode'
Expected Behavior
No error. Widget visible when in debug mode.
Steps to Reproduce
- In a widgets properties click visibility -> conditional
- Select code expression
kDebugMode as body
- click check error button
Reproducible from Blank
Bug Report Code (Required)
N/A
Context
In the app sometimes its necessary to have widgets / functionality for developers eyes only. Suppose a button that only rendered in debug mode.
Visual documentation

Additional Info
I also tried creating a function and return kDebugMode inside it. But in function I can't add import foundation for kDebugMode.
Potentially consider adding "Is Debug Mode" in Global Properties

Environment
- FlutterFlow version: v4.0 Dec 2, 2023
- Platform: Web
- Browser name and version: Edge 119.0.2151.93
- Operating system and version affected: Windows 11
Has your issue been reported?
Current Behavior
Visibility -> Code Expression -> kDebugMode
shows the error undefined name 'kDebugMode'
Expected Behavior
No error. Widget visible when in debug mode.
Steps to Reproduce
kDebugModeas bodyReproducible from Blank
Bug Report Code (Required)
N/A
Context
In the app sometimes its necessary to have widgets / functionality for developers eyes only. Suppose a button that only rendered in debug mode.
Visual documentation
Additional Info
I also tried creating a function and
return kDebugModeinside it. But in function I can't add import foundation for kDebugMode.Potentially consider adding "Is Debug Mode" in Global Properties

Environment