-
Notifications
You must be signed in to change notification settings - Fork 28
Am unable to execute a callback action on a component #3734
Description
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
- Create a component
- Add component Parameter
- Set type to action
- Select component and define action to
on tap execute callbackand set callback to the parameter previously added - Add component to page
- Pass data to component and set action to navigate to a page
- Select Preview
- Select component
- 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
Environment
- FlutterFlow version: 4.1.85
- Platform: MacOS Web
- Browser name and version: Chrome, 128
- Operating system and version affected: macOS Sonoma 14.6.1Additional 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.