Skip to content

Selecting DateTime Format on an If/Then/Else condition returning a DateTime causes crash #633

@nogoodconfig

Description

@nogoodconfig

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • 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 populating a text field (in text widget, or button widget label at least), and configuring an If/Then/Else that returns a DateTime object, selecting 'DateTime format' from the 'Available options' drop down, causes the 'Set from Variable' window to grey out completely, and the UI to become unresponsive.

Expected Behavior

  1. Create text field
  2. Select 'Set from variable' for the text value
  3. Build an If/Then/Else condition that returns a DateTime Value
  4. Should be able to set a DateTime display format

Steps To Reproduce

  1. Create text field
  2. Select 'Set from variable' for the text value
  3. Build an If/Then/Else condition that returns a DateTime Value (e.g. in testing - if CombinedText (set to 'Test') is equal to 'Test', then Global Property > Current Time, else Global Property > Current Time)
  4. Select 'DateTime format' from the 'Available options' drop down
  5. Observe the window grey out, and the UI become unresponse

Bug Report Code

ITFfls/l6otIsdtK0L6IK8FFuDwXOV8cTYMvjuphcx4cIYjsEJYAP/f8U0NKT8Old1VYJGD8uGUew/DQvuLDCscoBwiqc6ZY0JVAUTyXLWOib8m2PbuSVnMlBcNTIXWO5qSGkR1SKfthdEYa6nGDNa3qNleeY8aSfxBlZ7vfcPo=

Context

Unable to format DateTime values output from If/Then/Else condition within text fields on multiple widgets (e.g. Text, Button). Causes limitation in building out a UI.

Additional info

No response

Environment

- FlutterFlow version: 3.7.3
- Platform: Web
- Browser name and version: Chrome 110.0.5481.177

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions