Skip to content

action blocks with parameter "Context" gives build error without showing error in flutterflow #6812

@Axelhovde

Description

@Axelhovde

Can we access your project?

  • 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 making an app state action block with the parameter "context" (string), the application does not complain, but it however fails when trying to build, because action blocks uses "buildContext context" as a parameter.

here is the parameter definitions of the action block I made that made the build fail:
Future<List?> goalGenerator(
BuildContext context, {
String? context,
})

Expected Behavior

Should be an error saying "context" is not a legal parameter name.

Steps to Reproduce

  1. create app action block.
  2. make a parameter called "context"
  3. Build -> build will fail

Reproducible from Blank

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

Bug Report Code (Required)

IT40sPLl5bdirtdH0bjLYPBp9QUjQG42ULsZ1u17aDcsfIj2B+wyaeLRQBZpZOGkSmxlKEWL+WAHwM7KvdrPUe4BNROVY4h5z6V+QwLicFu/aoSyDs2sZmh6QJhgJ3a10aSzkSZ4HNVpSVoQ6mWDNtiRcCzsJ5P4Zwh9f6PHaOI=

Visual documentation

not needed

Environment

Not relevant

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugstatus: confirmedIssue has been reproduced and confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions