Answers for "flutter button text padding"

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

change padding in text field flutter

decoration: InputDecoration(
				contentPadding: const EdgeInsets.all(12), isDense: true,
			)
Posted by: Guest on March-25-2021

Browse Popular Code Answers by Language