Custom Actions

Create a custom action reusable throughout the application.

Creating a Custom Action

In order to create a Custom Action follow the next steps :

  • Click on the Add button and select Actions in the opened list

  • Set the Name of your action on the right properties panel

  • Add a Tag to group your custom actions

  • Choose if your action should be Async or not

  • Choose if you passe the Build Context in the action

  • Add any Parameters you need

  • Choose the Return Type

  • Write your code in the central editor

  • Save by clicking on the top right button Save

Example of a custom action that use a custom dependency and show a Toast on button click

Use a Custom Action

Example of use of a custom action that show a Toast on button click
Example of a custom action in a running application

Last updated