How can i make flatbuttons with api?