Skip to content

Am unable to execute a callback action on a component #3734

@SpencerHaven

Description

@SpencerHaven

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

I followed this flutterflow tutorial on components to the T and cannot get the action to work on a component: https://www.youtube.com/watch?v=EiHY5WP_pDk

On the component, I add an action parameter. Then, on the component itself I set the action to on tap -> execute callback and bind the "action" parameter to it. Lastly, on the page I have the component added to, I set the component properties to navigate to another page. When I go to test this out nothing happens. I've looked over it several times and am at a loss.

Expected Behavior

I would expect that, once I have the action on the component set up, when I pass the action to it, it should perform that action. In this case, navigating to another page.

Steps to Reproduce

  1. Create a component
  2. Add component Parameter
  3. Set type to action
  4. Select component and define action to on tap execute callback and set callback to the parameter previously added
  5. Add component to page
  6. Pass data to component and set action to navigate to a page
  7. Select Preview
  8. Select component
  9. Nothing happens

Reproducible from Blank

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

Bug Report Code (Required)

ITESz/Hqx89gocdc+s72cMJqhQMkQzM6bZI7ku1EdwEhNYD3PYkiZOP8QFVLYteDY35iJVaYgXMJpcGPi+GTUfcnHxyVQLlyyoRXQQz/QlqhVrKJCs67e398TMVRGmKn08O3hRVQPvZfSGQ460yEIvCdG3qCf9qOYwx5e6fDbOY=

Visual documentation

Screenshot 2024-09-01 at 8 55 28 PM Screenshot 2024-09-01 at 8 55 09 PM Screenshot 2024-09-01 at 8 54 42 PM Screenshot 2024-09-01 at 8 53 51 PM

Environment

- FlutterFlow version: 4.1.85
- Platform: MacOS Web
- Browser name and version: Chrome, 128
- Operating system and version affected: macOS Sonoma 14.6.1

Additional Information

I'm trying to create a reusable component. Since I cannot use the component to navigate, it is essentially useless to me. If I want to make changes to this widget, I can't do it in one spot, which will just take more time.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions