Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add multiple action support #157

Open
ishanvaghani opened this issue Jan 25, 2025 · 6 comments
Open

feat: Add multiple action support #157

ishanvaghani opened this issue Jan 25, 2025 · 6 comments
Labels
feature New feature or request

Comments

@ishanvaghani
Copy link
Contributor

ishanvaghani commented Jan 25, 2025

Description
Currently we support single action on widgets, For example button onPress callback has single click action we should support multiple actions as well. User should be able to do multiple actions. Instead of Map<String, dynamic> let's migrate to List<Map<String, dynamic>>

@ishanvaghani ishanvaghani added the feature New feature or request label Jan 25, 2025
@divyanshub024
Copy link
Member

Hey @ishanvaghani, I'm wondering what could be the use case of it?

@savaki
Copy link

savaki commented Jan 25, 2025

Just coming across this project now. One of the appealing things is that it preserves Flutter's mental model. If you begin to do this, you force developers to understand what conversations are required for mirai. At some point you may be forced into that, but this doesn't seem like the place

Can I suggest helpers that could allow the action to do what you're looking for

@divyanshub024
Copy link
Member

@savaki Please go ahead, suggest to us how we can make it better.

@ishanvaghani
Copy link
Contributor Author

The problem with current code is let say i have a form and on button tap i want to show loader (update the state) and make api call this is not possible right now. How can we solve this? @savaki @divyanshub024

@divyanshub024
Copy link
Member

@ishanvaghani Let's revisit this once the state management is added.

@ishanvaghani
Copy link
Contributor Author

As discussed will be creating action_list parser to perform multiple actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants