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.