Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.06 KB

outline_button.md

File metadata and controls

30 lines (23 loc) · 1.06 KB

Outlined Button

A Material Design Outlined Button.

{
    "type": "outline_button",
    "text": "New Alarm",
    "destination": {
        "type": "scaffold"
    },
    "state_change": {
        "text": "Alarm created"
    },
    "cloud_function": "my_function"
}

One of destination and state_change is required. The destination property must be a scaffold. The state_change property must be a state_change

The cloud_function property is optional, and must be the name of the Firebase Cloud Function to call when the button is pressed. The Cloud Function must be defined as a callable function in your app's Firebase project, as detailed here. After the function is successfully executed, if there is a destination property the app will navigate to that destination.

See Also