Simple question: Conditional Display if DataType = Null

Widgets & Design

For anyone else who may be looking at this in the future:
I found that setting conditionals based off of an input parameter datatype (which itself was coming from an API on another page) was unreliable. In the end I created a duplicate component, and toggled on/off the components on the page with the API.

Question:
Could someone please share with me the correct way to conditionally hide widgets while a DataType is null?

Setup:

  • I have a fairly complex DataType ("myData") that is being populated by an API.

  • To prevent null errors I need to prevent widgets from loading until the DataType is done populating.

I've tried two methods and both aren't working:

Method 1
(Fails, widgets attempt to display resulting in red error box)

  • Conditional

    • Single Condition

      • myData > No Further Changes

      • Is Set

Method 2
(Implementation fails, I get "Current variable is not valid")

  • Conditional

    • Single Condition

      • myData > No Further Changes

      • Not Equal To

      • Null

This seems like it should be really simple so I must be missing something obvious.

What have you tried so far?

See description body.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
4 replies