Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 555 Bytes

state_change.md

File metadata and controls

22 lines (18 loc) · 555 Bytes

State Change

A State Change can be used along with a button to change values in the state of a widgets closest, state holding ancestor. You can create a state_change like this:

{
    "type": "raised_button",
    "text": "Enable dark mode",
    "state_change": {
        "primary_color": "#000000",
        "dark": true
    }
}

See Also