Answers for "how to do padding in textbutton in flutter"

2

flutter elevated button padding inside

ElevatedButton(
  onPressed: () {
    // Validate will return true if the form is valid, or false if
    // the form is invalid.
    if(_formKey.currentState.validate()) {
    	// Process data.
    }
  },
  child: Padding(
  	padding: const EdgeInsets.symmetric(vertical: 15.0, horizontal: 10),
	child: Text('Entrar'),
  )
)
Posted by: Guest on March-16-2021
1

content padding field text flutter

TextField(
          textAlign: TextAlign.left,
          decoration: new InputDecoration(hintText: "Enter Something", contentPadding: const EdgeInsets.all(20.0))
          )
Posted by: Guest on May-14-2020

Code answers related to "how to do padding in textbutton in flutter"

Browse Popular Code Answers by Language