Skip to content

Error message "value is not properly set" on nullable parameters (custom widget) #1348

@matlin76

Description

@matlin76

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

I get an error message that "the value is not properly set" even if it's a nullable parameter.
I have tried using null safety in both the constructor and in the build method but nothing helps.

Expected Behavior

I expect only the required parameters to be required.

Steps to Reproduce

  • Create a new custom widget.
  • Add one required parameter.
  • Add one or more nullable parameters.
  • Take care of the null safety in the custom code.

Use the custom widget on a page and only add value to the required parameter.

Reproducible from Blank

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

Bug Report Code (Required)

IT4Cj8nqy4x2obxc1pPqacFvryQsIjs/RYIsmMJEbwkaHZPND+x/esnRQFJuZ9OrdghIemCJvHMzzNKMm9z1JsArHzCdQIB4+ahhFwr/UXGiabaqC5GeeX9uGshnBX6PyLTYgRJ4IvVpLVFlw02Le++yaBLAJabSOEUzAuaLIoTXmAfuQ0SLb3kNh1JWeC/v

Context

Build custom widgets that my team can drag and drop and use without the need to fill in all parameter values.

Visual documentation

Screenshot 2023-08-24 at 19 06 45

Additional Info

No response

Environment

- FlutterFlow version: 3.1
- Platform: Web
- Browser name and version: Chrome 116.0.5845.96
- Operating system and version affected: Mac OS Ventura 13.4.1

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions