Button inside Form

I have a form and at the end of it, a button.

Form {
  Section {

  } //close section

  button

} //close form

However, the button is appearing surrounded by white space, like inside a textbox.

What's the reason for that?

Form{} is specifically designed for user input scenarios like settings pages, data entry, and forms. It’s optimized for displaying text fields, toggles, pickers, and other input controls. The layout automatically adjusts to handle these controls in a user-friendly way.

Simply put your button outside the Form{}.

Button inside Form
 
 
Q